]> git.saurik.com Git - cycript.git/commitdiff
Syntax highlight nil, an identifier, as a constant.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 12 Sep 2012 05:31:53 +0000 (22:31 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 12 Sep 2012 05:31:53 +0000 (22:31 -0700)
Cycript.l.in

index 141e8466afb96c9d98d77d2e9d995c6c58e96ab8..17f0013ed315569abe33a9126f342c36d1c82d54 100644 (file)
@@ -250,6 +250,7 @@ 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);
+"nil"             L C I(identifier, Identifier("nil"), tk::Identifier_, hi::Constant);
 @end
 
 "false"        L C I(false, False(), tk::False, hi::Constant);