From 88ba937c7fca7d3af4307e87df5ede5217422c75 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Jul 2010 13:16:35 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 5ecc388..900c01d 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -877,12 +877,11 @@ ScopeParser.prototype = { token = this.ts.nextTok(); } // return function() {.... - if (token.name == "RETURN") { - token = this.ts.nextTok(); - } - if (token.name == "FUNCTION") { + while (token.name != "FUNCTION") { token = this.ts.nextTok(); } + token = this.ts.nextTok(); + //assert token.getType() == Token.LP; if (this.mode == 'BUILDING_SYMBOL_TREE') { fnScope = new Scope(1, currentScope, token.n, '', token); -- 2.39.2