]> git.saurik.com Git - cycript.git/commitdiff
Fix regex literal parsing in field/property lists.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Sep 2012 15:26:35 +0000 (08:26 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Sep 2012 15:53:53 +0000 (08:53 -0700)
Cycript.yy.in

index 465dd45c8235880afb1a229e18b41909e135e39f..fe1873fe13f763d346b633f53c86547433746283 100644 (file)
@@ -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