From 6a2affe14a8b2d95852fcf3a5ace4b394eb4b560 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Jul 2010 13:03:28 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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()); -- 2.39.2