diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 08ec1c5f242..f14dd7df9d2 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -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' {