JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 05:03:28 +0000 (13:03 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 05:03:28 +0000 (13:03 +0800)
JSDOC/ScopeParser.js

index 1b0aca0..81e39d8 100644 (file)
@@ -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  : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());