X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FCompressWhite.js;h=a79372e8a8d33f255a61840d698979bb86974e21;hb=8aed7180503922fdc34f4c8b6b4d6ecf70fedada;hp=2250ae3f343e33fdd5316fe55edcbf25d7642f55;hpb=21f13a0294755955b63d7913fe4df292aa5d6346;p=gnome.introspection-doc-generator diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index 2250ae3..a79372e 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -85,13 +85,16 @@ CompressWhite = function (ts, packer) throw "could not find end lbrace!!!"; } + print('FN: '+ts.tokens[cu].toString()); print('F1: '+ts.lookTok(1).toString()); print('F2: '+ts.look(1,true).toString()); // if next is not ';' -> make it so... // although this var a=function(){},v,c; causes if (ts.lookTok(1).data != ';' && ts.lookTok(1).data != '}' && ts.look(1,true).name == "NEWLINE") { + ts.look(0).outData = ts.look(0).data+";"; + print("ADDING SEMI: " + ts.look(0).toString(); } // restore.. ts.cursor = cu;