From 322286dd48cfe4c3b9eff66583931e89038e4ba4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 15 Dec 2015 16:33:41 -0800 Subject: [PATCH] "new"."target" did not parse as it wasn't a token. --- Parser.ypp.in | 2 ++ Scanner.lpp.in | 1 + 2 files changed, 3 insertions(+) diff --git a/Parser.ypp.in b/Parser.ypp.in index cd605d5..21db450 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -330,6 +330,7 @@ _finline int yylex(cy::parser::semantic_type *semantic, CYLocation *location, CY %token _return__ "!return" %token _super_ "super" %token _switch_ "switch" +%token _target_ "target" %token _this_ "this" %token _throw_ "throw" %token _try_ "try" @@ -849,6 +850,7 @@ IdentifierType | "public" { $$ = CYNew CYIdentifier("public"); } | "set" { $$ = CYNew CYIdentifier("set"); } | "synchronized" { $$ = CYNew CYIdentifier("synchronized"); } + | "target" { $$ = CYNew CYIdentifier("target"); } | "throws" { $$ = CYNew CYIdentifier("throws"); } | "transient" { $$ = CYNew CYIdentifier("transient"); } | "undefined" { $$ = CYNew CYIdentifier("undefined"); } diff --git a/Scanner.lpp.in b/Scanner.lpp.in index c775f91..1fb16aa 100644 --- a/Scanner.lpp.in +++ b/Scanner.lpp.in @@ -508,6 +508,7 @@ XMLName {XMLNameStart}{XMLNamePart}* "super" L /*FFK*/ F(tk::_super_, hi::Constant); "switch" L /*KKK*/ F(tk::_switch_, hi::Control); "synchronized" L /*FII*/ F(tk::_synchronized_, hi::Meta); +"target" L /*III*/ F(tk::_target_, hi::Identifier); "this" L /*KKK*/ F(tk::_this_, hi::Constant); "throw" L /*KKK*/ F(tk::_throw_, hi::Control); "throws" L /*FII*/ F(tk::_throws_, hi::Meta); -- 2.47.2