From: Alan Knowles Date: Fri, 16 Jul 2010 05:03:28 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=6a2affe14a8b2d95852fcf3a5ace4b394eb4b560 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 1b0aca0..81e39d8 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) { + var n = this.ts.nextTok(); + if (n.data == ',') { + break; + } + nts.push(n); + } + 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());