JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:17:12 +0000 (14:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:17:12 +0000 (14:17 +0800)
JSDOC/ScopeParser.js

index ee8f1c7..c50402d 100644 (file)
@@ -631,13 +631,20 @@ ScopeParser.prototype = {
                             break;
 
                         case '[': //Token.LB:
-                            bracketNesting++;
+                        
+                            var ts = this.ts;
+                            var _this = this;
+                            token.items.forEach(function(ns) {
+                                _this.ts = new TokenStream(ns);
+                                _this.parseExpression();
+                            });
+                            
                             break;
-
+/*
                         case ']': //Token.RB:
                             bracketNesting--;
                             break;
-
+*/
                         case '(': //Token.LP:
                             parensNesting++;
                             break;