From ce6a4df71885ea2fa4bebd63bdf0caadb4acf8a7 Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 19 Apr 2010 17:47:50 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 4242ec6..a412508 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -582,8 +582,8 @@ ScopeParser.prototype = { case 'NAME': symbol = token.data; - this.ts.nextTok(); - if (this.ts.lookTok(-1).data == "{" && this.ts.lookTok(1).data == ":") { + + 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(); isObjectLitAr.push(true); @@ -591,11 +591,11 @@ ScopeParser.prototype = { break; } isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1]; - if (isInObjectLitAr && this.ts.lookTok(-1).data == "," && this.ts.lookTok(1).data == ":") { + if (isInObjectLitAr && this.ts.lookTok(0).data == "," && this.ts.lookTok(2).data == ":") { break; } - print(this.ts.lookTok(-1).data); - if (this.ts.lookTok(-1).data == ".") { + print(this.ts.lookTok(0).data); + if (this.ts.lookTok(0).data == ".") { //skip '.' break; } -- 2.39.2