projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/ScopeParser.js
[gnome.introspection-doc-generator]
/
JSDOC
/
ScopeParser.js
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
ee8f1c7
..
267152b
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-608,7
+608,7
@@
ScopeParser.prototype = {
if (this.braceNesting == expressionBraceNesting &&
bracketNesting == 0 &&
parensNesting == 0) {
if (this.braceNesting == expressionBraceNesting &&
bracketNesting == 0 &&
parensNesting == 0) {
- print(
scopeIndent +
"<< EXIT EXPRESSION");
+ print("<< EXIT EXPRESSION");
this.expN--;
return;
}
this.expN--;
return;
}
@@
-631,13
+631,21
@@
ScopeParser.prototype = {
break;
case '[': //Token.LB:
break;
case '[': //Token.LB:
- bracketNesting++;
+
+ var ts = this.ts;
+ var _this = this;
+ token.items.forEach(function(ns) {
+ _this.ts = new TokenStream(ns);
+ _this.parseExpression();
+ });
+ this.ts = ts;
+
break;
break;
-
+/*
case ']': //Token.RB:
bracketNesting--;
break;
case ']': //Token.RB:
bracketNesting--;
break;
-
+*/
case '(': //Token.LP:
parensNesting++;
break;
case '(': //Token.LP:
parensNesting++;
break;
@@
-775,7
+783,7
@@
ScopeParser.prototype = {
}
if (!this.ts.nextTok()) break;
}
}
if (!this.ts.nextTok()) break;
}
- print(
scopeIndent +
"<< EXIT EXPRESSION");
+ print("<< EXIT EXPRESSION");
this.expN--;
},
this.expN--;
},