diff --git a/parser/src/scanner.rs b/parser/src/scanner.rs index b9d0f16..57a4295 100644 --- a/parser/src/scanner.rs +++ b/parser/src/scanner.rs @@ -1986,7 +1986,7 @@ impl> Scanner { 'e' => ret = '\x1b', ' ' => ret = '\x20', '"' => ret = '"', - '\'' => ret = '\'', + '/' => ret = '/', '\\' => ret = '\\', // Unicode next line (#x85) 'N' => ret = char::from_u32(0x85).unwrap(), diff --git a/parser/tests/yaml-test-suite.rs b/parser/tests/yaml-test-suite.rs index a1e421d..e4470ac 100644 --- a/parser/tests/yaml-test-suite.rs +++ b/parser/tests/yaml-test-suite.rs @@ -315,8 +315,6 @@ fn expected_events(expected_tree: &str) -> Vec { #[rustfmt::skip] static EXPECTED_FAILURES: &[&str] = &[ // Misc - "3UYS", // Escaped / - "HRE5", // Escaped ' in double-quoted (should not work) "QB6E", // Indent for multiline double-quoted scalar "S98Z", // Block scalar and indent problems? "U99R", // Comma is not allowed in tags