From 55c229fd713c6084551b2e2a886e325d10ba01cd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" <saurik@saurik.com> Date: Thu, 1 Oct 2009 00:36:04 +0000 Subject: [PATCH] Implemented automatic semicolon insertion token restrictions. --- Cycript.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2