You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@perlpunk I mean that many parsers (including online checkers) do not allow colon in the anchor.
It causes tons of misunderstanding
SnakeYAML has to drop some test cases in the suite to stay sound.
I only saw the linked issue now: jruby/jruby#8352
I answered there.
The important point there is: an emitter must add a space after an alias, if it is used as a mapping key, otherwise the colon is parsed as part of the anchor.
*1 : true
# not:
# *1: true
We cannot fix this problem simply by removing those tests from the test suite.
But you can fix Snake YAML to create valid YAML.
There is a clear restriction in the anchor names
But the tests (Y2GN, 2SXE) still check that colon should be accepted as a valid character
The text was updated successfully, but these errors were encountered: