Closed eemeli closed 4 years ago
For the record the NTY5 test was added as consequence of #34
But I think I agree that a non-greedy application of rule 82 means that a mistyped YAML (or TAG) directive ought to fallback to the ns-reserved-directive
production.
Yeah, I was thinking about that too. I think we should remove that test...
Removed the test, created new release 2020-02-11
The test was introduced a few weeks ago in 30f372c. The relevant directives are defined with:
Therefore, a directive line
%YAML1.2
should get parsed asns-reserved-directive
, regarding which the following instruction applies: "A YAML processor should ignore unknown directives with an appropriate warning."Effectively, as "appropriate warning" is rather implementation-specific, it might be best to just remove this test completely. Or to just leave out the error, as parsers are expected to deal with this situation without an error.