aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/urweb.lex
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
commitc824364cb48385480667ce646425d37ec0ad87b0 (patch)
tree788f0b94636aa8f8c626221a99aa7cee41ecc2ad /src/urweb.lex
parentf7b3e616c3d16a85e0cc1de32e37e036c964294a (diff)
Cope with DOS-format line breaks in source code
Diffstat (limited to 'src/urweb.lex')
-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]))+;