summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-03-10 19:26:35 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-03-10 19:26:35 -0500
commitb6ae43a264ce0b42db372879f682b45af3885d71 (patch)
tree788f0b94636aa8f8c626221a99aa7cee41ecc2ad /src
parent07e59d83c097dd267a149220e52498cdb4d79aa4 (diff)
Cope with DOS-format line breaks in source code
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 371d69a7..74b91432 100644
--- a/src/urweb.lex
+++ b/src/urweb.lex
@@ -169,7 +169,7 @@ fun unescape loc s =
id = [a-z_][A-Za-z0-9_']*;
cid = [A-Z][A-Za-z0-9_]*;
-ws = [\ \t\012];
+ws = [\ \t\012\r];
intconst = [0-9]+;
realconst = [0-9]+\.[0-9]*;
notags = ([^<{\n(]|(\([^\*<{\n]))+;