]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Add all dependency m4 scripts to the repository.
[cycript.git] / Cycript.l.in
index c946c89c12084d66f53928f46adab28789b0ff5e..ea140a851728949901fa63ddfc8960e1fce01f67 100644 (file)
@@ -33,7 +33,9 @@ typedef cy::parser::token tk;
 // do /not/ fold token to the return: this is a macro and the ordering is dependent
 #define F(value, highlight) do { \
     int token(value); \
+@begin ObjectiveC
     yyextra->no_.AtImplementation = false; \
+@end
     yyextra->no_.Function = false; \
     yyextra->no_.OpenBrace = false; \
     yylval->highlight_ = highlight; \
@@ -264,6 +266,10 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "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);
+
+"bool"         L C I(identifier, Identifier("bool"), tk::Identifier_, hi::Type);
+"BOOL"         L C I(identifier, Identifier("BOOL"), tk::Identifier_, hi::Type);
+"id"           L C I(identifier, Identifier("id"), tk::Identifier_, hi::Type);
 @end
 
 "undefined"    L C I(identifier, Identifier("undefined"), tk::Identifier_, hi::Operator);