Fix dquote string escape sequences.

This commit is contained in:
Ethiraric 2024-01-22 22:56:18 +01:00
parent 7145ee8282
commit 2e94a4217b
2 changed files with 1 additions and 3 deletions

View file

@ -1986,7 +1986,7 @@ impl<T: Iterator<Item = char>> Scanner<T> {
'e' => ret = '\x1b', 'e' => ret = '\x1b',
' ' => ret = '\x20', ' ' => ret = '\x20',
'"' => ret = '"', '"' => ret = '"',
'\'' => ret = '\'', '/' => ret = '/',
'\\' => ret = '\\', '\\' => ret = '\\',
// Unicode next line (#x85) // Unicode next line (#x85)
'N' => ret = char::from_u32(0x85).unwrap(), 'N' => ret = char::from_u32(0x85).unwrap(),

View file

@ -315,8 +315,6 @@ fn expected_events(expected_tree: &str) -> Vec<String> {
#[rustfmt::skip] #[rustfmt::skip]
static EXPECTED_FAILURES: &[&str] = &[ static EXPECTED_FAILURES: &[&str] = &[
// Misc // Misc
"3UYS", // Escaped /
"HRE5", // Escaped ' in double-quoted (should not work)
"QB6E", // Indent for multiline double-quoted scalar "QB6E", // Indent for multiline double-quoted scalar
"S98Z", // Block scalar and indent problems? "S98Z", // Block scalar and indent problems?
"U99R", // Comma is not allowed in tags "U99R", // Comma is not allowed in tags