]> git.saurik.com Git - cycript.git/commitdiff
Don't optimize {} to ; in the parser.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 12 Jul 2010 01:05:30 +0000 (01:05 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 12 Jul 2010 01:05:30 +0000 (01:05 +0000)
Cycript.yy.in

index 224d6bf3b4df90ac98fc002cb9d2296a835010ec..22a601ad8aaa4f0a1304130a9c6ee3dfbbf2bd21 100644 (file)
@@ -1264,7 +1264,7 @@ Block_
     ;
 
 Block
-    : Block_ { if ($1) $$ = CYNew CYBlock($1); else $$ = CYNew CYEmpty(); }
+    : Block_ { $$ = CYNew CYBlock($1); }
     ;
 
 StatementList