From 70234143cce404215fb1809116076d23f6091521 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 23 Sep 2012 08:26:35 -0700 Subject: [PATCH] Fix regex literal parsing in field/property lists. --- Cycript.yy.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index 465dd45..fe1873f 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -793,7 +793,7 @@ ObjectLiteral PropertyDefinitionList_ : "," PropertyDefinitionList { $$ = $2; } - | "," { $$ = NULL; } + | "," LexSetRegExp { $$ = NULL; } | { $$ = NULL; } ; @@ -803,7 +803,7 @@ PropertyDefinitionList PropertyDefinitionListOpt : PropertyDefinitionList { $$ = $1; } - | { $$ = NULL; } + | LexSetRegExp { $$ = NULL; } ; PropertyDefinition @@ -1395,7 +1395,7 @@ ClassSuperOpt ClassFieldListOpt : Expression Identifier ";" ClassFieldListOpt { $$ = CYNew CYField($1, $2, $4); } - | { $$ = NULL; } + | LexSetRegExp { $$ = NULL; } ; ClassFields -- 2.47.2