JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 290a872..7d1c606 100644 (file)
@@ -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("<B>EID</B>");
-                 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;
         }