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