JSDOC/CompressWhite.vala
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.vala
index daa2c57..4afcb6c 100644 (file)
@@ -13,7 +13,7 @@ namespace JSDOC
             BRACE
     }
         
-       public string CompressWhite (TokenStream ts, Packer packer, bool keepWhite) throws CompressWhiteError,TokenStreamError
+       public string CompressWhite (TokenStream ts, Packer packer, bool keepWhite) // throws CompressWhiteError,TokenStreamError
        {
                //keepWhite = keepWhite || false;
                ts.rewind();
@@ -77,11 +77,12 @@ namespace JSDOC
                                // freeze time.. 
                                //println("got = function() ");
                                var cu = ts.cursor;
-                                
+                               ts.cursor+=2; // move two along, and balance...
+                               
                                if (ts.balance("(").size < 1 ){
-                                   ts.dump(cu-40, cu);
+                                   ts.dump(cu-40, cu+2);
                                    print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>");
-                                   ts.dump(cu, cu+40);
+                                   ts.dump(cu+2, cu+40);
                                    
                                    throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" );
                                }