JSDOC/TokenReader.vala
[gnome.introspection-doc-generator] / 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;