From: Jay Freeman (saurik) Date: Thu, 19 Nov 2015 09:36:46 +0000 (-0800) Subject: Automatic semi-colon insertion broke with Bison 3. X-Git-Tag: v0.9.590~301 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/6df8474bd803da1b2937273edfec0ce9d0298fef Automatic semi-colon insertion broke with Bison 3. --- diff --git a/Cycript.yy.in b/Cycript.yy.in index ae8330c..8eba3a4 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -755,7 +755,7 @@ StrictSemi 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