]> git.saurik.com Git - cycript.git/commitdiff
Compensate for comprehensions getting in for !in.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 8 Jun 2012 19:47:49 +0000 (12:47 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 8 Jun 2012 19:49:19 +0000 (12:49 -0700)
Cycript.yy.in

index 15b76736674b407b3fdeedf2ca19d7c40a7257e3..6eb6e10cf1598234a53a45c28adc0165ba178139 100644 (file)
@@ -1686,8 +1686,8 @@ IfComprehension
     ;
 
 ForComprehension
-    : "for" "(" LexPushInOn Identifier LexPopIn "!in" Expression ")" { $$ = CYNew CYForInComprehension($4, $7); }
-    | "for" "each" "(" LexPushInOn Identifier LexPopIn "!in" Expression ")" { $$ = CYNew CYForOfComprehension($5, $8); }
+    : "for" "(" Identifier "in" Expression ")" { $$ = CYNew CYForInComprehension($3, $5); }
+    | "for" "each" "(" Identifier "in" Expression ")" { $$ = CYNew CYForOfComprehension($4, $6); }
     ;
 
 ComprehensionList