summaryrefslogtreecommitdiff
path: root/src/urweb.lex
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-08-10 15:55:43 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2010-08-10 15:55:43 -0400
commit06f9a1fcbb40856fae744e49be3bf0e166246293 (patch)
tree407556eab027f66694f1ddc3a0d4c1813e1b120f /src/urweb.lex
parent55a669bc95cb2831f5a4fc084d2aa828863a1f07 (diff)
Better UTF-8 escaping for JavaScript and SQL literals
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 88b7d857..27af5bdd 100644
--- a/src/urweb.lex
+++ b/src/urweb.lex
@@ -173,7 +173,7 @@ ws = [\ \t\012];
intconst = [0-9]+;
realconst = [0-9]+\.[0-9]*;
notags = [^<{\n(]+;
-xcom = ([^-]|(-[^-]))+;
+xcom = ([^\-]|(-[^\-]))+;
oint = [0-9][0-9][0-9];
xint = x[0-9a-fA-F][0-9a-fA-F];