Don't inherit tag directives between documents.
This commit is contained in:
parent
5f6dc2246f
commit
92e20e6eb4
2 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue