JSDOC/CompressWhite.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 07:26:44 +0000 (15:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 07:26:44 +0000 (15:26 +0800)
JSDOC/Lang.vala.c
JSDOC/TextStream.vala.c
JSDOC/TokenReader.vala.c
JSDOC/Token.vala.c
JSDOC/TokenStream.vala.c
JSDOC/Packer.vala.c
JSDOC/Collapse.vala.c
JSDOC/ScopeParser.vala.c
JSDOC/Scope.vala.c
JSDOC/Identifier.vala.c
JSDOC/CompressWhite.vala.c
JSDOC/PackerRun.vala.c

JSDOC/CompressWhite.vala

index ae1f696..30a4c9b 100644 (file)
@@ -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 (