From: Jay Freeman (saurik) Date: Sun, 23 Sep 2012 15:26:35 +0000 (-0700) Subject: Fix regex literal parsing in field/property lists. X-Git-Tag: v0.9.500%b1~126 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/70234143cce404215fb1809116076d23f6091521?ds=sidebyside Fix regex literal parsing in field/property lists. --- 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