From cf19d1c1b69c77a7d91e93b25b2b0c2ca881b9be Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 12 Sep 2012 23:17:10 -0700 Subject: [PATCH] Highlight NULL, YES, and NO identifiers as constants. --- Cycript.l.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cycript.l.in b/Cycript.l.in index 5472417..a3aed14 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -252,7 +252,11 @@ XMLName {XMLNameStart}{XMLNamePart}* "@implementation" L C F(yyextra->no_.AtImplementation ? tk::AtImplementation_ : tk::AtImplementation, hi::Meta); "@import" L C F(tk::AtImport, hi::Meta); "@selector" L C F(tk::AtSelector, hi::Meta); + +"NULL" L C I(identifier, Identifier("NULL"), tk::Identifier_, hi::Constant); "nil" L C I(identifier, Identifier("nil"), tk::Identifier_, hi::Constant); +"YES" L C I(identifier, Identifier("YES"), tk::Identifier_, hi::Constant); +"NO" L C I(identifier, Identifier("NO"), tk::Identifier_, hi::Constant); @end "false" L C I(false, False(), tk::False, hi::Constant); -- 2.45.2