]> git.saurik.com Git - cycript.git/commitdiff
Replace a literal 0 with the symbolic yyeof_.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 7 Jun 2012 03:51:50 +0000 (20:51 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 7 Jun 2012 03:51:50 +0000 (20:51 -0700)
Cycript.yy.in

index 40a043686c9f1ceb7309f09e4f217e4b4d3ace6d..aeb15cd1579f23397290b1a078c0855d4a1155e4 100644 (file)
@@ -552,7 +552,7 @@ Terminator_
 
 Terminator
     : Terminator_
-    | error { if (yychar != 0 && yychar != token::CloseBrace && !yylval.newline_) YYABORT; else { yyerrok; driver.errors_.pop_back(); } } StrictSemi
+    | error { if (yychar != yyeof_ && yychar != token::CloseBrace && !yylval.newline_) YYABORT; else { yyerrok; driver.errors_.pop_back(); } } StrictSemi
     ;
 
 TerminatorOpt