summaryrefslogtreecommitdiff
path: root/src/urweb.lex
diff options
context:
space:
mode:
Diffstat (limited to 'src/urweb.lex')
-rw-r--r--src/urweb.lex3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/urweb.lex b/src/urweb.lex
index 8a989884..88b7d857 100644
--- a/src/urweb.lex
+++ b/src/urweb.lex
@@ -173,6 +173,7 @@ ws = [\ \t\012];
intconst = [0-9]+;
realconst = [0-9]+\.[0-9]*;
notags = [^<{\n(]+;
+xcom = ([^-]|(-[^-]))+;
oint = [0-9][0-9][0-9];
xint = x[0-9a-fA-F][0-9a-fA-F];
@@ -207,6 +208,8 @@ xint = x[0-9a-fA-F][0-9a-fA-F];
<COMMENT> "*)" => (exitComment ();
continue ());
+<XML> "<!--" {xcom} "-->" => (continue ());
+
<STRING,CHAR> "\\\"" => (str := #"\"" :: !str; continue());
<STRING,CHAR> "\\'" => (str := #"'" :: !str; continue());
<STRING,CHAR> "\\n" => (str := #"\n" :: !str; continue());