X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FCompressWhite.vala;h=30a4c9b7ddd38adefd4225c0c1030ea3430ad0c2;hp=ae1f696a5b33eb9eeb245833743973bcc8246cce;hb=fc458c7c6ec98c2d37647c74847d16aa7f02c469;hpb=5597e62a5936ef4bc55882307bc31862b27c284a diff --git a/JSDOC/CompressWhite.vala b/JSDOC/CompressWhite.vala index ae1f696..30a4c9b 100644 --- a/JSDOC/CompressWhite.vala +++ b/JSDOC/CompressWhite.vala @@ -81,8 +81,7 @@ namespace JSDOC tok = ts.next(); var cu = ts.cursor; - ts.cursor+=2; // move two along, and balance... - + if (tok.data != "(" || ts.balance("(").size < 1 ){ print("balance ( issue on line %d\n", ts.toArray().get(cu).line); @@ -93,6 +92,9 @@ namespace JSDOC throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" ); } tok = ts.lookTok(0); + + cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method. + //print("AFTER BALANCE ("); //ts.dump(cu, ts.cursor); //ts.cursor--; // cursor at the (