config1.builder
[gnome.introspection-doc-generator] / JSDOC / TokenReader.vala
index bed9a5a..6e156ed 100644 (file)
@@ -74,7 +74,7 @@ namespace JSDOC {
         public void dump()
         {
                foreach(var token in this.tokens) {
-                       print(token.asString());
+                       print(token.asString() +"\n");
                }
         }
         
@@ -278,7 +278,12 @@ 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();
+
+                   if (null == Lang.punc(found + ns )) {
+                               break;
+                       }
                 found += stream.next();
             }
             
@@ -417,7 +422,7 @@ namespace JSDOC {
             ) {
                 var line = this.line;
                 while (!stream.lookEOF()) {
-                                       print(stream.look().to_string());
+                                       //print(stream.look().to_string());
                        if ( Lang.isNewline(stream.look().to_string())) {
                                break;
                        }