From f6a35e276d3a68dcf67c66cb4bd5ea90e12d41f1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Nov 2015 16:39:10 +0800 Subject: [PATCH] JSDOC/ScopeParser.vala --- JSDOC/ScopeParser.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index 7a8a1e6..d91ecf0 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -427,8 +427,8 @@ namespace JSDOC { } isInObjectLitAr = isObjectLitAr.get(isObjectLitAr.size-1); - if (isInObjectLitAr && this.ts.lookTok(1).data == ':' && - ( this.ts.lookTok(-1).data == '{' || this.ts.lookTok(-1).data == ':' )) { + if (isInObjectLitAr && this.ts.lookTok(1).data == ":" && + ( this.ts.lookTok(-1).data == "{" || this.ts.lookTok(-1).data == ":" )) { // see if we can replace.. // remove the quotes.. // should do a bit more checking!!!! (what about wierd char's in the string.. -- 2.39.2