JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 09:25:26 +0000 (17:25 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 09:25:26 +0000 (17:25 +0800)
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();
             }