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:
14274a4
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 05:49:28 +0000
(13:49 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 05:49:28 +0000
(13:49 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
19dab1c
..
9a83e08
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-321,7
+321,7
@@
ScopeParser.prototype = {
break;
case "PUNC.LEFT_CURLY": // {
break;
case "PUNC.LEFT_CURLY": // {
- print('SCOPE-CURLY:' +
token.toString(
));
+ print('SCOPE-CURLY:' +
JSON.stringify(token,null,4
));
//println("<i>"+token.data+"</i>");
isObjectLitAr.push(false);
this.braceNesting++;
//println("<i>"+token.data+"</i>");
isObjectLitAr.push(false);
this.braceNesting++;
@@
-379,9
+379,9
@@
ScopeParser.prototype = {
case "STRN.DOUBLE_QUOTE": // used for object lit detection..
case "STRN.SINGLE_QUOTE":
case "STRN.DOUBLE_QUOTE": // used for object lit detection..
case "STRN.SINGLE_QUOTE":
- print('SCOPE-STRING:' +
JSON.stringify(token,null,4
));
+ print('SCOPE-STRING:' +
token.toString(
));
//println("<i>"+token.data+"</i>");
//println("<i>"+token.data+"</i>");
-
+
if (this.ts.lookTok(-1).data == '{' && this.ts.lookTok(1).data == ':') {
// then we are in an object lit.. -> we need to flag the brace as such...
isObjectLitAr.pop();
if (this.ts.lookTok(-1).data == '{' && this.ts.lookTok(1).data == ':') {
// then we are in an object lit.. -> we need to flag the brace as such...
isObjectLitAr.pop();