Allow single quote to be escaped in strings.

This commit is contained in:
Paul Stansifer 2012-07-30 17:56:25 -07:00
parent a9cc5066ee
commit 3819b6b3d1

View File

@ -602,6 +602,7 @@ fn next_token_inner(rdr: string_reader) -> token::token {
'r' { str::push_char(accum_str, '\r'); }
't' { str::push_char(accum_str, '\t'); }
'\\' { str::push_char(accum_str, '\\'); }
'\'' { str::push_char(accum_str, '\''); }
'"' { str::push_char(accum_str, '"'); }
'\n' { consume_whitespace(rdr); }
'x' {