X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/73439a14e93de87336e297d8a0d87b920472a489..0047545cb97c80de1259dfe60c1f96ab22762dca:/Cycript.l.in
diff --git a/Cycript.l.in b/Cycript.l.in
index 40316ae..c61c2fc 100644
--- a/Cycript.l.in
+++ b/Cycript.l.in
@@ -1,21 +1,21 @@
/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2013 Jay Freeman (saurik)
+ * Copyright (C) 2009-2014 Jay Freeman (saurik)
*/
-/* GNU General Public License, Version 3 {{{ */
+/* GNU Affero General Public License, Version 3 {{{ */
/*
- * Cycript is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation, either version 3 of the License,
- * or (at your option) any later version.
- *
- * Cycript is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Cycript. If not, see .
+ * GNU Affero General Public License for more details.
+
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
**/
/* }}} */
@@ -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}*
\/{RegularExpressionBody}\/{RegularExpressionFlags} L C I(literal, RegEx(Y), tk::RegularExpressionLiteral, hi::Constant);
+#![^\n]* L M
+
\/\/[^\n]* L M
/* http://ostermiller.org/findcomment.html */
@@ -260,10 +263,15 @@ 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
+@begin C
"@encode" L C F(tk::AtEncode, hi::Meta);
+@end
+
+@begin ObjectiveC
"@end" L C F(tk::AtEnd, hi::Meta);
"@implementation" L C F(yyextra->no_.AtImplementation ? tk::AtImplementation_ : tk::AtImplementation, hi::Meta);
"@import" L C F(tk::AtImport, hi::Special);