JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 07:39:59 +0000 (15:39 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 07:39:59 +0000 (15:39 +0800)
JSDOC/TokenStream.vala

index ad1baf2..83dd044 100644 (file)
@@ -235,7 +235,7 @@ namespace JSDOC {
                    //Seed.print("STOP:" + stop);
                    Token token;
                    
-                   while (null != (token = this.lookTok(1))) {
+                   while (null != (token = this.look(1,false))) {
                                debug("BALANCE: " + token.asString());
                        if (token.is(start)) {
                      //      Seed.print("balance: START : " + depth + " " + token.data);
@@ -249,12 +249,14 @@ namespace JSDOC {
                        
                        if (token.is(stop)) {
                            depth--;
-                       //    Seed.print("balance: STOP: "  + depth + " " + token.data);
+                           
+                               print("balance (%d): STOP: %s\n"  depth ,  token.data);
                            if (depth < 1) {
                                        return got;
                                }
+                               
                        }
-                       if (null == this.nextTok()) {
+                       if (null == this.next()) {
                                break;
                        }
                    }