Don't inherit tag directives between documents.

This commit is contained in:
Ethiraric 2023-11-19 16:22:04 +01:00
parent a502625ce8
commit 0d50cff2b5
2 changed files with 1 additions and 3 deletions

View file

@ -510,7 +510,6 @@ impl<T: Iterator<Item = char>> Parser<T> {
self.tags = tags; self.tags = tags;
self.skip(); self.skip();
} }
// TODO tag directive
Ok(()) Ok(())
} }
@ -557,7 +556,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
Token(mark, _) => mark, Token(mark, _) => mark,
}; };
// TODO tag handling self.tags.clear();
self.state = State::DocumentStart; self.state = State::DocumentStart;
Ok((Event::DocumentEnd, marker)) Ok((Event::DocumentEnd, marker))
} }

View file

@ -366,7 +366,6 @@ static EXPECTED_FAILURES: &[&str] = &[
"9HCY", // Directive after content "9HCY", // Directive after content
"EB22", // Directive after content "EB22", // Directive after content
"MUS6-01", // no document end marker? "MUS6-01", // no document end marker?
"QLJ7", // TAG directives should not be inherited between documents
"RHX7", // no document end marker "RHX7", // no document end marker
"SF5V", // duplicate directive "SF5V", // duplicate directive
"W4TN", // scalar confused as directive "W4TN", // scalar confused as directive