From 0b04c89e1c84750ed956063de8c86087a35f999d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 10 Sep 2015 18:35:48 +0800 Subject: [PATCH] JSDOC/TokenReader.vala --- JSDOC/TokenReader.vala | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index 7d6f88e..191b7a8 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -90,12 +90,9 @@ namespace JSDOC { var tokens = new TokenArray(); bool eof; - while (true) { + while (!stream.lookEOF()) { + - stream.look(0, out eof) - if (eof) { - break; - } if (this.read_mlcomment(stream, tokens)) continue; if (this.read_slcomment(stream, tokens)) continue; if (this.read_dbquote(stream, tokens)) continue; @@ -174,7 +171,7 @@ namespace JSDOC { /** @returns {Boolean} Was the token found? */ - read_word : function(/**JSDOC.TokenStream*/stream, tokens) { + public bool read_word (TokenStream stream, TokenArray tokens) { var found = ""; while (!stream.look().eof && Lang.isWordChar(stream.look())) { found += stream.next(); -- 2.39.2