aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-20 10:00:43 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-20 10:00:43 -0800
commit31d99cd425242f9dbaba80fa486e1414cc6a9f80 (patch)
treef4589d7415ab2cb2cb43f1d51309a1da810ae84a
parentb2ce7ff6d1395db92efc1f86b7c4069f15642f40 (diff)
downloadmilf-rs-31d99cd425242f9dbaba80fa486e1414cc6a9f80.tar.gz
milf-rs-31d99cd425242f9dbaba80fa486e1414cc6a9f80.zip
Remove slash as an escapeable character
-rw-r--r--src/parser.rs1
-rw-r--r--tests/valid/string-escapes.toml2
2 files changed, 1 insertions, 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."