From: Alan Knowles Date: Thu, 3 Dec 2015 07:25:40 +0000 (+0800) Subject: JSDOC/CompressWhite.vala X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=5597e62a5936ef4bc55882307bc31862b27c284a JSDOC/CompressWhite.vala --- diff --git a/JSDOC/CompressWhite.vala b/JSDOC/CompressWhite.vala index ca8aa78..ae1f696 100644 --- a/JSDOC/CompressWhite.vala +++ b/JSDOC/CompressWhite.vala @@ -92,10 +92,11 @@ namespace JSDOC throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" ); } + tok = ts.lookTok(0); //print("AFTER BALANCE ("); //ts.dump(cu, ts.cursor); //ts.cursor--; // cursor at the ( - if (ts.balance("{").size < 1 ){ + if (tok.data != "{" || ts.balance("{").size < 1 ){ ts.dump(cu-40, cu); print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>");