From: Alan Knowles Date: Wed, 14 Jul 2010 08:14:18 +0000 (+0800) Subject: JSDOC/CompressWhite.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=5b6a88bf63402cd7020c464ac1aed27ac57b850b JSDOC/CompressWhite.js --- diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index b8715d8..de1b149 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -71,8 +71,21 @@ CompressWhite = function (ts, packer) //println("got = function() "); var cu = ts.cursor; - ts.balance("("); - ts.balance("{"); + if (!ts.balance("(") ){ + ts.dump(cu-40, cu); + print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>"); + ts.dump(cu, cu+40); + + throw "could not find end lbrace!!!"; + } + if (!ts.balance("{") ){ + ts.dump(cu-40, cu); + print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>"); + ts.dump(cu, cu+40); + + throw "could not find end lbrace!!!"; + } + // if next is not ';' -> make it so... // although this var a=function(){},v,c; causes