]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Fix issue in 64-bit choose() reported by heardrwt.
[cycript.git] / Cycript.l.in
index 40316ae54d9e5d10e475fa629fd3ef485fde7edb..cbe4fe5c354229fd5ec569d676cea3fdc5003a7e 100644 (file)
@@ -119,7 +119,8 @@ int H(char c) {
 %option noyywrap
 %option yylineno
 %option nounput
-%option interactive
+%option batch
+%option never-interactive
 %option reentrant
 %option stack
 
@@ -155,6 +156,8 @@ XMLName {XMLNameStart}{XMLNamePart}*
 
 <RegExp>\/{RegularExpressionBody}\/{RegularExpressionFlags} L C I(literal, RegEx(Y), tk::RegularExpressionLiteral, hi::Constant);
 
+#![^\n]* L M
+
 \/\/[^\n]* L M
 
        /* http://ostermiller.org/findcomment.html */
@@ -260,6 +263,8 @@ XMLName {XMLNameStart}{XMLNamePart}*
 
 @begin C
 "typedef"         L C I(identifier, Identifier("typedef"), tk::Typedef, hi::Meta);
+"unsigned"        L C I(identifier, Identifier("unsigned"), tk::Unsigned, hi::Type);
+"signed"          L C I(identifier, Identifier("signed"), tk::Signed, hi::Type);
 @end
 
 @begin ObjectiveC