From: Jay Freeman (saurik) Date: Thu, 7 Jun 2012 19:49:10 +0000 (-0700) Subject: While let might not be Identifier, it sure is Word. X-Git-Tag: v0.9.456~10 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/dd983804e1895bd4c24d81a89886881dd02c6afe While let might not be Identifier, it sure is Word. --- diff --git a/Cycript.yy.in b/Cycript.yy.in index 410730a..dc2a512 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -592,6 +592,10 @@ Word | "import" { $$ = $1; } /* XXX: | "in" { $$ = $1; } */ /* XXX: | "instanceof" { $$ = $1; } */ + + // XXX: as it currently is not an Identifier + | "let" { $$ = $1; } + | "new" { $$ = $1; } | "null" { $$ = $1; } | "of" { $$ = $1; } @@ -650,7 +654,9 @@ Identifier | "transient" { $$ = $1; } | "volatile" { $$ = $1; } - // XXX: is this allowed?! | "let" { $$ = $1; } + // XXX: currently I only have this as Word + // | "let" { $$ = $1; } + | "yield" { $$ = $1; } | "each" { $$ = $1; }