JSDOC/CompressWhite.vala
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.vala
index a064084..79952e2 100644 (file)
@@ -78,11 +78,11 @@ namespace JSDOC
                                //println("got = function() ");
                                tok = ts.nextTok();
                                tok = ts.nextTok();
+                               
                                //tok = ts.next();
                                 var cu = ts.cursor;
-                                       print("CUR: %s\n", ts.lookTok(0).asString());
-                                       print("NEXT = should be brace: %s\n", ts.lookTok(1).asString());
-                                        
+                                       print("NEXT = should be brac: %s\n", ts.lookTok(1).asString());
+                                         
                               
                                  
                                if (ts.lookTok(1).data != "(" || ts.balance("(").size < 1 ){
@@ -93,8 +93,10 @@ namespace JSDOC
                                    
                                    throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" );
                                }
-                               tok = ts.lookTok(0);
-                               
+                               print("CUR = should be ): %s\n", ts.lookTok(0).asString());
+
+                               tok = ts.nextTok();
+                               print("CUR = should be {: %s\n", ts.lookTok(0).asString());                             
                                cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method.
                                
                                //print("AFTER BALANCE (");