X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=389ff9ac0b53c88a6cfde31c3f50e346cd8ca554;hp=49041305b29e4bde2483ec8ed3b7fbb77a9d875e;hb=9e01cae90f19e4da0bcb59eff0b706401c025fc8;hpb=d4368d6a39ba7e0f2875e9f42e52cd522ec5c336 diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 4904130..389ff9a 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -577,7 +577,7 @@ ScopeParser.prototype = { //print(scopeIndent + ">> ENTER EXPRESSION" + this.expN); - while (token = this.ts.lookTok()) { + while (token = this.ts.nextTok()) { @@ -635,9 +635,9 @@ ScopeParser.prototype = { var ts = this.ts; var _this = this; token.items.forEach(function(ns) { - print("EXPR-PUNC[:" + JSON.stringify(ns, null, 4)); + print("EXPR-PUNC-MAKE:" + JSON.stringify(ns, null, 4)); _this.ts = new TokenStream(ns); - _this.ts.cursor--; + //_this.ts.cursor--; _this.parseExpression(); }); this.ts = ts; @@ -785,7 +785,7 @@ ScopeParser.prototype = { print("EXPR-SKIP:" + JSON.stringify(token, null, 4)); break; } - if (!this.ts.nextTok()) break; + } print("<< EXIT EXPRESSION"); this.expN--;