X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenStream.vala;h=10a8b98f75bd0a31a047f854b4ac73a04407ca71;hb=e80166c6012671cf8c2956f1fa5f943669bff60e;hp=d1f0f9b15b70548a0b51026eda07d554d4d36863;hpb=9b3662de58f362ee6afc1d3fb343e8d4d2b3ad7a;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenStream.vala b/JSDOC/TokenStream.vala index d1f0f9b..10a8b98 100644 --- a/JSDOC/TokenStream.vala +++ b/JSDOC/TokenStream.vala @@ -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,10 +249,12 @@ 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.next()) { break;