JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index cf5c8f7..fb34d64 100644 (file)
@@ -793,6 +793,8 @@ ScopeParser.prototype = {
         var currentScope  = false; 
         var fnScope = false;
         var identifier;
+        var b4braceNesting = this.braceNesting + 0;
+        
         //this.logR("<B>PARSING FUNCTION</B>");
         currentScope = this.scopes[this.scopes.length-1];
 
@@ -899,7 +901,7 @@ ScopeParser.prototype = {
         this.parseScope(fnScope);
         // now pop it off the stack!!!
        
-        this.braceNesting--;
+        this.braceNesting = b4braceNesting;
         
     },