From 227c87323603dc0b338e89997d2fce7ffc755fb0 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 12 Jan 2010 16:09:13 -0500 Subject: Allow escaped backslashes in literals; conversion betwixt int and char --- src/urweb.lex | 1 + 1 file changed, 1 insertion(+) (limited to 'src/urweb.lex') diff --git a/src/urweb.lex b/src/urweb.lex index d2227d16..45f555dd 100644 --- a/src/urweb.lex +++ b/src/urweb.lex @@ -198,6 +198,7 @@ xint = x[0-9a-fA-F][0-9a-fA-F]; "\\\"" => (str := #"\"" :: !str; continue()); "\\'" => (str := #"'" :: !str; continue()); "\\n" => (str := #"\n" :: !str; continue()); + "\\\\" => (str := #"\\" :: !str; continue()); "\\t" => (str := #"\t" :: !str; continue()); "\n" => (newline yypos; str := #"\n" :: !str; continue()); -- cgit v1.2.3