]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Improve isolation of ObjectiveC syntax filter code.
[cycript.git] / Cycript.l.in
index 759a4dd382d635f2c7174491d9fd268d61495704..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; \
@@ -265,6 +267,8 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "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