From 6508c651f4c2944aeec023cf6822691afe79d3f2 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 8 Jun 2012 12:47:49 -0700 Subject: [PATCH] Compensate for comprehensions getting in for !in. --- Cycript.yy.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index 15b7673..6eb6e10 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -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 -- 2.45.2