X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=2e488634c728e26f4beb8463d65e6853593c6759;hp=5ecc388a22825f0ff897fbff8dfb8c6ef2efeb2d;hb=464eb562cca9995e9a9988d5218ac94dbe3f0576;hpb=3cc16040a01e94ec391a7b32b4abca0621581dd6 diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 5ecc388..2e48863 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.data != "(") { token = this.ts.nextTok(); } + + //assert token.getType() == Token.LP; if (this.mode == 'BUILDING_SYMBOL_TREE') { fnScope = new Scope(1, currentScope, token.n, '', token);