From 72b2086fb92dfcc524adc4749395c1e06b2594ac Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Dec 2015 06:11:56 -0800 Subject: [PATCH] Remove Cycript's auto keyword (even I don't care). --- Parser.ypp.in | 7 ------- Scanner.lpp.in | 1 - 2 files changed, 8 deletions(-) diff --git a/Parser.ypp.in b/Parser.ypp.in index b76b4b4..9fe2a73 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -439,7 +439,6 @@ type; }) %token _SEL_ "SEL" @end -%token _auto_ "auto" %token _each_ "each" %token _of_ "of" %token _of__ "!of" @@ -760,7 +759,6 @@ IdentifierName Word : IdentifierNoOf[pass] { $$ = $pass; } - | "auto" { $$ = CYNew CYWord("auto"); } | "break" { $$ = CYNew CYWord("break"); } | "case" { $$ = CYNew CYWord("case"); } | "catch" { $$ = CYNew CYWord("catch"); } @@ -2189,11 +2187,6 @@ MemberAccess | "->" AutoComplete { driver.mode_ = CYDriver::AutoIndirect; YYACCEPT; } ; /* }}} */ -/* Cycript (C): auto Compatibility {{{ */ -Var_ - : "auto" - ; -/* }}} */ /* Cycript (C): Lambda Expressions {{{ */ TypedParameterList_ : "," TypedParameterList[parameters] { $$ = $parameters; } diff --git a/Scanner.lpp.in b/Scanner.lpp.in index c2aa6e4..518b6b4 100644 --- a/Scanner.lpp.in +++ b/Scanner.lpp.in @@ -520,7 +520,6 @@ XMLName {XMLNameStart}{XMLNamePart}* "with" L /*KKK*/ F(tk::_with_, hi::Control); "yield" L /*IS?*/ F(tk::_yield_, hi::Control); -"auto" L F(tk::_auto_, hi::Meta); "each" L F(tk::_each_, hi::Control); "of" L F(tk::_of_, hi::Operator); -- 2.45.2