diff src/urweb.lex @ 1285:514be09d5018

Better UTF-8 escaping for JavaScript and SQL literals
author Adam Chlipala <adam@chlipala.net>
date Tue, 10 Aug 2010 15:55:43 -0400
parents 43ca083678f8
children 3c334458c84f
line wrap: on
line diff
--- a/src/urweb.lex	Tue Aug 10 14:52:33 2010 -0400
+++ b/src/urweb.lex	Tue Aug 10 15:55:43 2010 -0400
@@ -173,7 +173,7 @@
 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];