projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2183921
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 05:03:28 +0000
(13:03 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 05:03:28 +0000
(13:03 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
1b0aca0
..
81e39d8
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-300,7
+300,21
@@
ScopeParser.prototype = {
} else {
//var bn = this.braceNesting;
var bn = this.braceNesting;
} 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());
this.braceNesting = bn;
//this.braceNesting = bn;
//this.logR("parseScope DONE : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());