]> git.saurik.com Git - cycript.git/commitdiff
"new"."target" did not parse as it wasn't a token.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:33:41 +0000 (16:33 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:33:41 +0000 (16:33 -0800)
Parser.ypp.in
Scanner.lpp.in

index cd605d51a84878c0a3c79df5054b68967f18892a..21db45037da31d2ddcd7708c46804b8df858a16a 100644 (file)
@@ -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"); }
index c775f91769ec5e84ed46b2b15434bd9bb0aa8bd0..1fb16aa5362c3a521b8662ec9efc3b1c08b584a0 100644 (file)
@@ -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);