X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=a39b6dc11e3a4f737a0c91346307b55cfdfa3bd8;hp=1b0aca05dd93d0896845ceabd5c21872a52550a8;hb=e0883c6b75d27d1a69607e4d3b2b48f0e4e9a839;hpb=2183921647581416d5e16670143ed1198bf14579
diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js
index 1b0aca0..a39b6dc 100644
--- a/JSDOC/ScopeParser.js
+++ b/JSDOC/ScopeParser.js
@@ -300,7 +300,21 @@ ScopeParser.prototype = {
} else {
//var bn = this.braceNesting;
var bn = this.braceNesting;
- this.parseExpression();
+ var nts = [];
+ while (true) {
+ if (!token || token.type == 'VOID' || token.data == ',') {
+ break;
+ }
+ nts.push(token);
+ token = this.ts.nextTok();
+ }
+ if (nts.length) {
+ var TS = this.ts;
+ this.ts = new TokenStream(nts);
+ this.parseExpression();
+ this.ts = TS;
+ }
+
this.braceNesting = bn;
//this.braceNesting = bn;
//this.logR("parseScope DONE : ParseExpression - tok is:" + this.ts.lookT(0).toString());
@@ -412,7 +426,7 @@ ScopeParser.prototype = {
break;
case "KEYW.CATCH":
- //print('SCOPE-CATCH:' + token.toString());
+ print('SCOPE-CATCH:' + token.toString());
//println(""+token.data+"");
this.parseCatch();
break;