diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-30 17:56:25 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-30 18:38:15 -0700 |
| commit | 3819b6b3d11c2ae8d9a368049d679d2a096569a0 (patch) | |
| tree | 4e428cdc8e1ac2c99d7bdce7a91a239eb0bdae6f /src | |
| parent | a9cc5066ee61f20e7cc59141d5c7213a452a2778 (diff) | |
| download | rust-3819b6b3d11c2ae8d9a368049d679d2a096569a0.tar.gz rust-3819b6b3d11c2ae8d9a368049d679d2a096569a0.zip | |
Allow single quote to be escaped in strings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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' { |
