From 4c648df8ca91ac675c02fc35ca663209d8bf8d55 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 10 Sep 2015 18:36:25 +0800 Subject: [PATCH] JSDOC/TokenReader.vala --- JSDOC/TokenReader.vala | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index 5922d11..a971019 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -113,7 +113,7 @@ namespace JSDOC { return tokens; - }, + } /** * findPuncToken - find the id of a token (previous to current) @@ -149,7 +149,7 @@ namespace JSDOC { n--; } return -1; - }, + } /** * lastSym - find the last token symbol * need to back check syntax.. @@ -158,14 +158,15 @@ namespace JSDOC { * @arg {Number} offset where to start.. * @return {Token} the token */ - public Token lastSym(TokenArray tokens, int n) { + public Token lastSym(TokenArray tokens, int n) + { for (var i = n-1; i >= 0; i--) { if (!(tokens.get(i).is("WHIT") || tokens.get(i).is("COMM"))) { return tokens.get(i); } } return null; - }, + } @@ -174,7 +175,7 @@ namespace JSDOC { */ public bool read_word (TokenStream stream, TokenArray tokens) { var found = ""; - while (!stream.look().eof && Lang.isWordChar(stream.look())) { + while (!stream.lookEOF() && Lang.isWordChar(stream.look())) { found += stream.next(); } @@ -226,7 +227,7 @@ namespace JSDOC { return true; - }, + } /** @returns {Boolean} Was the token found? -- 2.39.2