From dd983804e1895bd4c24d81a89886881dd02c6afe Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 7 Jun 2012 12:49:10 -0700 Subject: [PATCH] While let might not be Identifier, it sure is Word. --- Cycript.yy.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.50.0