JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index ce21a87..008eca1 100644 (file)
@@ -860,6 +860,10 @@ ScopeParser.prototype = {
             }
             token =  this.ts.nextTok();
         }
+        // return function() {.... 
+        if (token.name == "RETURN") {
+            token =  this.ts.nextTok();
+        }
 
         //assert token.getType() == Token.LP;
         if (this.mode == 'BUILDING_SYMBOL_TREE') {