]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
The TARGET_OS_IPHONE variable is set to 1 or 0.
[cycript.git] / Cycript.l.in
index b766a953ae09516ea366ec05264a3e1dcff97edd..cb422ccfca62add4cbcc7fa19f9221c74393da40 100644 (file)
@@ -43,7 +43,7 @@ typedef cy::parser::token tk;
 } while (false)
 
 #define A new($pool)
-#define Y apr_pstrmemdup($pool, yytext, yyleng)
+#define Y $pool.strmemdup(yytext, yyleng)
 
 #define I(type, Type, value, highlight) do { \
     yylval->type ## _ = A CY ## Type; \
@@ -251,6 +251,8 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "["    L C F(tk::OpenBracket, hi::Structure);
 "]"    L C F(tk::CloseBracket, hi::Structure);
 
+"@error"          L C F(tk::AtError, hi::Error);
+
 @begin Java
 "@class"          L C F(tk::AtClass, hi::Meta);
 @end