JSDOC/CompressWhite.vala
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.vala
index 334a337..c312624 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,7 +77,8 @@ 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);
                                    print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>");
@@ -245,7 +246,7 @@ namespace JSDOC
                            case "DELETE":
                            case "THROW":
                            case "CASE":
-                           
+                           case "CONST":
                            case "VOID":
                                tok.outData =  tok.data + " ";