From: Jay Freeman (saurik) Date: Thu, 1 Oct 2009 00:36:04 +0000 (+0000) Subject: Implemented automatic semicolon insertion token restrictions. X-Git-Tag: v0.9.432~395 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/55c229fd713c6084551b2e2a886e325d10ba01cd?ds=sidebyside Implemented automatic semicolon insertion token restrictions. --- diff --git a/Cycript.y b/Cycript.y index 2c98974..c4fa447 100644 --- a/Cycript.y +++ b/Cycript.y @@ -253,7 +253,7 @@ TerminatorOpt Terminator : ";" | NewLine - | error { yyerrok; } + | error { if (yychar != 0 && yychar != cy::parser::token::CloseBrace && !yylval.newline_) YYABORT; else yyerrok; } ; NewLineOpt