From fc44232bcff15a35c016ddfc1dc34b6503125020 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 29 Jan 2014 09:30:57 -0800 Subject: [PATCH] Make lexer start a comment with #! (for scripts). --- Cycript.l.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cycript.l.in b/Cycript.l.in index 73721e2..f364ed7 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -155,6 +155,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 */ -- 2.45.2