From 31d99cd425242f9dbaba80fa486e1414cc6a9f80 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 20 Jan 2015 10:00:43 -0800 Subject: [PATCH] Remove slash as an escapeable character --- src/parser.rs | 1 - tests/valid/string-escapes.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 8065aa8..f3bfdb6 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -369,7 +369,6 @@ impl<'a> Parser<'a> { Some((_, 'f')) => Some('\u{c}'), Some((_, 'r')) => Some('\u{d}'), Some((_, '"')) => Some('\u{22}'), - Some((_, '/')) => Some('\u{2f}'), Some((_, '\\')) => Some('\u{5c}'), Some((pos, c @ 'u')) | Some((pos, c @ 'U')) => { diff --git a/tests/valid/string-escapes.toml b/tests/valid/string-escapes.toml index 2d64500..9f9a8c0 100644 --- a/tests/valid/string-escapes.toml +++ b/tests/valid/string-escapes.toml @@ -4,5 +4,5 @@ newline = "This string has a \n new line character." formfeed = "This string has a \f form feed character." carriage = "This string has a \r carriage return 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."