JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 09:29:36 +0000 (17:29 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 09:29:36 +0000 (17:29 +0800)
JSDOC/ScopeParser.js

index 69ee34c..6e2742a 100644 (file)
@@ -181,7 +181,7 @@ ScopeParser.prototype = {
         print ("                    ".substring(0, this.braceNesting*2) + str);
         
         //println("<B>LOG:</B>" + htmlescape(str) + "<BR/>\n");
-    },
+    },q
     logR : function(str)
     {
             //println("<B>LOG:</B>" + str + "<BR/>");
@@ -299,6 +299,11 @@ ScopeParser.prototype = {
                     if (this.braceNesting < expressionBraceNesting) {
                         var ls = this.scopes.pop();
                         ls.getUsedSymbols();
+                        // eat symbol if we are currently at { 
+                        if (this.ts.look(0).data == '{') {
+                            tihs.ts.nextTok();
+                        }
+                        
                         //print("<<<<<<<EXIT SCOPE" +this.scopes.length);
                         return;
                     }