From: Jay Freeman (saurik) Date: Fri, 8 Jun 2012 19:47:49 +0000 (-0700) Subject: Compensate for comprehensions getting in for !in. X-Git-Tag: v0.9.458~16 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/6508c651f4c2944aeec023cf6822691afe79d3f2?ds=sidebyside Compensate for comprehensions getting in for !in. --- 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