From 9417a6380a3b828f44584009384d8686cd8d7e59 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 16 Jun 2012 17:44:41 -0700 Subject: [PATCH] Do not assume lookahead (wish I could force it). --- Cycript.yy.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index 1345060..465b32b 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -536,11 +536,11 @@ LexNoBrace ; LexNoFunction - : { driver.no_.Function = true; } + : { if (yychar == yyempty_) driver.no_.Function = true; else if (yychar == token::Function) yychar = token::Function_; } ; LexNoAtImplementation - : { driver.no_.AtImplementation = true; } + : { if (yychar == yyempty_) driver.no_.AtImplementation = true; else if (yychar == token::AtImplementation) yychar = token::AtImplementation_; } ; LexSetStatement -- 2.45.2