From: Alan Knowles Date: Thu, 10 Sep 2015 10:23:04 +0000 (+0800) Subject: JSDOC/TokenReader.vala X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=c9a7c98c718d1578283b8538b61078b2b93731de JSDOC/TokenReader.vala --- diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index b9fcbf7..ebc19b0 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -80,8 +80,13 @@ namespace JSDOC { this.line =1; var tokens = new TokenArray(); - - while (!stream.look().eof) { + bool eof; + while (true) { + + 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;