]> git.saurik.com Git - cycript.git/commitdiff
Add __proto__ as token, only for syntax highlight.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Dec 2015 07:10:34 +0000 (23:10 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Dec 2015 07:10:34 +0000 (23:10 -0800)
Parser.ypp.in
Scanner.lpp.in

index 17b42e584e475f01f50eeff3b712babcfec09a95..bd83a15b7bf0e37efbecac8a498c4586a3d84bb2 100644 (file)
@@ -419,6 +419,7 @@ type; })
 %token _package_ "package"
 %token _private_ "private"
 %token _protected_ "protected"
+%token ___proto___ "__proto__"
 %token _prototype_ "prototype"
 %token _public_ "public"
 %token _set_ "set"
@@ -913,6 +914,7 @@ IdentifierTypeNoOf
     | "package" { $$ = CYNew CYIdentifier("package"); }
     | "private" { $$ = CYNew CYIdentifier("private"); }
     | "protected" { $$ = CYNew CYIdentifier("protected"); }
+    | "__proto__" { $$ = CYNew CYIdentifier("__proto__"); }
     | "prototype" { $$ = CYNew CYIdentifier("prototype"); }
     | "public" { $$ = CYNew CYIdentifier("public"); }
     | "set" { $$ = CYNew CYIdentifier("set"); }
index 3459b08655f8c99d2cd7e951a045723d219f7293..6d79127ed9aba86290632c19604c3d0085b740be 100644 (file)
@@ -496,6 +496,7 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "package"         L /*FSS*/ F(tk::_package_, hi::Meta);
 "private"         L /*FSS*/ F(tk::_private_, hi::Meta);
 "protected"       L /*FSS*/ F(tk::_protected_, hi::Meta);
+"__proto__"       L /*III*/ F(tk::___proto___, hi::Special);
 "prototype"       L /*III*/ F(tk::_prototype_, hi::Special);
 "public"          L /*FSS*/ F(tk::_public_, hi::Meta);
 "return"          L /*KKK*/ F(tk::_return_, hi::Control);