Don't inherit tag directives between documents.

This commit is contained in:
Ethiraric 2023-11-19 16:22:04 +01:00
parent 5f6dc2246f
commit 92e20e6eb4
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.skip();
}
// TODO tag directive
Ok(())
}
@ -557,7 +556,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
Token(mark, _) => mark,
};
// TODO tag handling
self.tags.clear();
self.state = State::DocumentStart;
Ok((Event::DocumentEnd, marker))
}

View file

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