X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenStream.vala;h=dff38f4ddd66f764f96963d88c22b447c1563f34;hb=cc935efc3f7afc2b006802fc8e53ce6f2f49996c;hp=582488f78361efdc8143af97764e9821095bd99f;hpb=eadaeff7783f7a8c8b38672ee9f89d971962dfe9;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenStream.vala b/JSDOC/TokenStream.vala index 582488f..dff38f4 100644 --- a/JSDOC/TokenStream.vala +++ b/JSDOC/TokenStream.vala @@ -236,7 +236,7 @@ namespace JSDOC { Token token; while (null != (token = this.look(1,false))) { - debug("BALANCE: " + token.asString()); + debug("BALANCE: %d %s " , this.cursor, token.asString()); if (token.is(start)) { // Seed.print("balance: START : " + depth + " " + token.data); depth++; @@ -252,6 +252,7 @@ namespace JSDOC { print("balance (%d): STOP: %s\n" , depth , token.data); if (depth < 1) { + this.next(); // shift cursor to eat closer... print("returning got %d\n", got.size); return got; }