]> git.saurik.com Git - cycript.git/commitdiff
Make minor format changes to lexer (and undefined). v0.9.459
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 14 Sep 2012 00:29:59 +0000 (17:29 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 14 Sep 2012 00:29:59 +0000 (17:29 -0700)
Cycript.l.in

index a3aed14629a909716eb0f9589ee7a9b89cbf3e4c..37707a6df06c71628ecc5e69b44d6001d41cf778 100644 (file)
@@ -253,12 +253,14 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "@import"         L C F(tk::AtImport, hi::Meta);
 "@selector"       L C F(tk::AtSelector, 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);
+"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
 
 @end
 
+"undefined"    L C I(identifier, Identifier("undefined"), tk::Identifier_, hi::Operator);
+
 "false"        L C I(false, False(), tk::False, hi::Constant);
 "null"         L C I(null, Null(), tk::Null, hi::Constant);
 "true"         L C I(true, True(), tk::True, hi::Constant);
 "false"        L C I(false, False(), tk::False, hi::Constant);
 "null"         L C I(null, Null(), tk::Null, hi::Constant);
 "true"         L C I(true, True(), tk::True, hi::Constant);