JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:23:04 +0000 (18:23 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:23:04 +0000 (18:23 +0800)
JSDOC/TokenReader.vala

index b9fcbf7..ebc19b0 100644 (file)
@@ -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;