]> git.saurik.com Git - cycript.git/commitdiff
Make lexer start a comment with #! (for scripts).
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 29 Jan 2014 17:30:57 +0000 (09:30 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 29 Jan 2014 17:30:57 +0000 (09:30 -0800)
Cycript.l.in

index 73721e27ccf7c56a67c3e27a59a16fb357975224..f364ed76e1475ae26bf9ede94715787d8116b19d 100644 (file)
@@ -155,6 +155,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 */