From: Joshua Wise Date: Sat, 14 Aug 2010 06:35:13 +0000 (-0400) Subject: Add carriage return to string lexer. X-Git-Url: http://git.joshuawise.com/snipe.git/commitdiff_plain/ab221774a414bdcc3fd6b8cae773c1489b88b051?ds=sidebyside Add carriage return to string lexer. --- diff --git a/parse/l5.lex b/parse/l5.lex index 32665a6..667638c 100644 --- a/parse/l5.lex +++ b/parse/l5.lex @@ -191,6 +191,7 @@ quote = [\"]; "\\\\" => (addString "\\" ; lex() ); "\\n" => (addString "\n" ; lex() ); + "\\r" => (addString "\r" ; lex() ); "\\t" => (addString "\t" ; lex() ); "\\\"" => (addString "\t" ; lex() ); "\\". => (ErrorMsg.error (ParseState.ext (yypos,yypos))