X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a87d7060233fff3ecbbc29d0e7e978f3587684ab..5d660beded5f90cbdc0a6875b1bd74c37ba98294:/Cycript.yy.in diff --git a/Cycript.yy.in b/Cycript.yy.in index aa5f535..866127e 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1054,7 +1054,7 @@ StatementList StatementListOpt : StatementList { $$ = $1; } - | LexSetRegExp { $$ = NULL; } + | LexSetStatement LexSetRegExp { $$ = NULL; } ; StatementListItem @@ -1318,7 +1318,7 @@ ProgramBody ProgramBodyOpt : ProgramBody { $$ = $1; } - | { $$ = NULL; } + | LexSetStatement LexSetRegExp { $$ = NULL; } ; /* }}} */ @@ -1491,7 +1491,7 @@ ImportPath ; StatementListItem - : "@import" ImportPath { $$ = CYNew CYImport(); } + : LexSetStatement LexSetRegExp "@import" ImportPath { $$ = CYNew CYImport(); } ; /* }}} */ /* Cycript (Objective-C): Boxed Expressions {{{ */