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

index 89ee136..35ebf94 100644 (file)
@@ -256,7 +256,9 @@ ScopeParser.prototype = {
                         if (token.name == "IN") {
                             break;
                         } else {
+                            var bn = this.braceNesting;
                             this.parseExpression();
+                            this.braceNesting = bn;
                             //this.logR("parseScope DONE  : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString()); 
                             
                             token = this.ts.lookTok(1);
@@ -269,7 +271,9 @@ ScopeParser.prototype = {
                     break;
                 case "KEYW.FUNCTION":
                     //println("<i>"+token.data+"</i>");
+                     var bn = this.braceNesting;
                     this.parseFunctionDeclaration();
+                     this.braceNesting = bn;
                     break;
 
                 case "PUNC.LEFT_CURLY": // {