]> git.saurik.com Git - cycript.git/commitdiff
Automatic semi-colon insertion broke with Bison 3.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2015 09:36:46 +0000 (01:36 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2015 09:36:46 +0000 (01:36 -0800)
Cycript.yy.in

index ae8330c94481b11ab620c14eae6e94eab4295a54..8eba3a40e0d98c7961fb411ab03d055d39ebdc19 100644 (file)
@@ -755,7 +755,7 @@ StrictSemi
 
 Terminator
     : ";"
 
 Terminator
     : ";"
-    | error { if (yyla.type_get() != yyeof_ && yyla.type != token::CloseBrace && !yyla.value.newline_) YYABORT; else { yyerrok; driver.errors_.pop_back(); } } StrictSemi
+    | error { if (yyla.type_get() != yyeof_ && yyla.type != yytranslate_(token::CloseBrace) && !yyla.value.newline_) { error(@1, "required semi-colon"); } else { yyerrok; driver.errors_.pop_back(); } } StrictSemi
     ;
 
 TerminatorOpt
     ;
 
 TerminatorOpt