From 38fa89a7854038ee05a99f7e5b84ce84d7d21c73 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 11:21:25 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 1b315b0..4b4e9e2 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -585,7 +585,9 @@ ScopeParser.prototype = { case 'NAME': symbol = token.data; - + print("in NAME = " + token.toString())); + print("in NAME 0: " + this.ts.look(0).toString())); + print("in NAME 2: " + this.ts.lookTok(2).toString())); if (this.ts.look(0).data == "{" && this.ts.lookTok(2).data == ":") { // then we are in an object lit.. -> we need to flag the brace as such... isObjectLitAr.pop(); @@ -593,6 +595,7 @@ ScopeParser.prototype = { //print(">>>>> EXP PUSH(true)"); break; } + isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1]; if (isInObjectLitAr && this.ts.lookTok(0).data == "," && this.ts.lookTok(2).data == ":") { break; -- 2.39.2