X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=7d1c6063b9729db07a7ef289854376a422f625aa;hb=8ada0d86c2c673774b95e910ff35dfa6aaa367f5;hp=290a87260114be52b11e76280bc919366ff789f6;hpb=339b1cd1cd139cae9395a5654e3c74244894a19c;p=gnome.introspection-doc-generator diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 290a872..7d1c606 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -637,6 +637,7 @@ ScopeParser.prototype = { token.items.forEach(function(ns) { print("EXPR-PUNC[:" + JSON.stringify(ns, null, 4)); _this.ts = new TokenStream(ns); + _this.ts.cursor--; _this.parseExpression(); }); this.ts = ts; @@ -743,7 +744,7 @@ ScopeParser.prototype = { //println("EID"); - case 'KEYW': + case 'KEYW': print("EXPR-KEYW:" + JSON.stringify(token, null, 4)); if (token.name == "FUNCTION") { @@ -780,7 +781,9 @@ ScopeParser.prototype = { } break; } - + default: + print("EXPR-SKIP:" + JSON.stringify(token, null, 4)); + break; } if (!this.ts.nextTok()) break; }