JSDOC/TokenReader.vala
[gnome.introspection-doc-generator] / JSDOC / TokenReader.vala
index bed9a5a..7bfe53e 100644 (file)
@@ -278,7 +278,10 @@ namespace JSDOC {
         {
             string found = "";
             
-            while (!stream.lookEOF() && Lang.punc(found + stream.look().to_string()).length > 0) {
+            while (!stream.lookEOF()) {
+                       var ns = stream.look().to_string();
+                       found += ns;
+                   if (Lang.punc(found + stream.look().to_string()) ) {
                 found += stream.next();
             }