Remove slash as an escapeable character

This commit is contained in:
Alex Crichton 2015-01-20 10:00:43 -08:00
parent b2ce7ff6d1
commit 31d99cd425
2 changed files with 1 additions and 2 deletions

View file

@ -369,7 +369,6 @@ impl<'a> Parser<'a> {
Some((_, 'f')) => Some('\u{c}'), Some((_, 'f')) => Some('\u{c}'),
Some((_, 'r')) => Some('\u{d}'), Some((_, 'r')) => Some('\u{d}'),
Some((_, '"')) => Some('\u{22}'), Some((_, '"')) => Some('\u{22}'),
Some((_, '/')) => Some('\u{2f}'),
Some((_, '\\')) => Some('\u{5c}'), Some((_, '\\')) => Some('\u{5c}'),
Some((pos, c @ 'u')) | Some((pos, c @ 'u')) |
Some((pos, c @ 'U')) => { Some((pos, c @ 'U')) => {

View file

@ -4,5 +4,5 @@ newline = "This string has a \n new line character."
formfeed = "This string has a \f form feed character." formfeed = "This string has a \f form feed character."
carriage = "This string has a \r carriage return character." carriage = "This string has a \r carriage return character."
quote = "This string has a \" quote character." quote = "This string has a \" quote character."
slash = "This string has a \/ slash character." slash = "This string has a / slash character."
backslash = "This string has a \\ backslash character." backslash = "This string has a \\ backslash character."