Fix towards flow mapping and colons.

This commit is contained in:
Ethiraric 2024-01-18 15:46:15 +01:00
parent 4603e31a67
commit 81104ba833
2 changed files with 1 additions and 3 deletions

View file

@ -1697,6 +1697,7 @@ impl<T: Iterator<Item = char>> Scanner<T> {
// From spec: To ensure JSON compatibility, if a key inside a flow mapping is JSON-like, // From spec: To ensure JSON compatibility, if a key inside a flow mapping is JSON-like,
// YAML allows the following value to be specified adjacent to the “:”. // YAML allows the following value to be specified adjacent to the “:”.
self.skip_to_next_token()?;
self.adjacent_value_allowed_at = self.mark.index; self.adjacent_value_allowed_at = self.mark.index;
self.tokens.push_back(tok); self.tokens.push_back(tok);

View file

@ -297,9 +297,6 @@ fn expected_events(expected_tree: &str) -> Vec<String> {
#[rustfmt::skip] #[rustfmt::skip]
static EXPECTED_FAILURES: &[&str] = &[ static EXPECTED_FAILURES: &[&str] = &[
// Flow mapping colon on next line / multiline key in flow mapping
"5MUD",
"K3WX",
// Bare document after end marker // Bare document after end marker
"7Z25", "7Z25",
"M7A3", "M7A3",