JSDOC/TokenReader.vala
[gnome.introspection-doc-generator] / JSDOC / TokenReader.vala
index 7bfe53e..9e0c1f6 100644 (file)
@@ -280,8 +280,10 @@ namespace JSDOC {
             
             while (!stream.lookEOF()) {
                        var ns = stream.look().to_string();
-                       found += ns;
-                   if (Lang.punc(found + stream.look().to_string()) ) {
+
+                   if (null != Lang.punc(found + ns ) {
+                               break;
+                       }
                 found += stream.next();
             }