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
commitb2b29ea1e208836b21842ce2126fb9fd8521247e (patch)
treee24685881c80d411865d4c6f28e10e6b133c14b1 /src
parentf3e50f123c33c26038b601475eeaa619526ad7ab (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]+;