summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-11-25 08:21:09 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2014-11-25 08:21:09 -0500
commit993b48282421fe2e6f5184c6fdcdf10d8108d976 (patch)
treee24685881c80d411865d4c6f28e10e6b133c14b1 /src
parent16ca08fbff65b24e0b2d8318f4d2419345a4276a (diff)
Tiny lexer change for SML/NJ compatibility (suggested by Ziv Scully)
Diffstat (limited to 'src')
-rw-r--r--src/urweb.lex2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urweb.lex b/src/urweb.lex
index 0d316ed2..195fd735 100644
--- a/src/urweb.lex
+++ b/src/urweb.lex
@@ -177,7 +177,7 @@ fun unescape loc s =
%s COMMENT STRING CHAR XML XMLTAG;
id = [a-z_][A-Za-z0-9_']*;
-xmlid = [A-Za-z][A-Za-z0-9-_]*;
+xmlid = [A-Za-z][A-Za-z0-9_-]*;
cid = [A-Z][A-Za-z0-9_]*;
ws = [\ \t\012\r];
intconst = [0-9]+;