JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 9345787..373a65b 100644 (file)
@@ -608,7 +608,7 @@ ScopeParser.prototype = {
                             if (this.braceNesting == expressionBraceNesting &&
                                     bracketNesting == 0 &&
                                     parensNesting == 0) {
-                                print(scopeIndent + "<< EXIT EXPRESSION");
+                                print("<< EXIT EXPRESSION");
                                 this.expN--;
                                 return;
                             }
@@ -635,9 +635,12 @@ ScopeParser.prototype = {
                             var ts = this.ts;
                             var _this = this;
                             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;
                             
                             break;
 /*