Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Expose tags and styles for sequences and mappings in Text.Libyaml #141
This makes tag and style information available on sequences and mappings as well as scalars (at the Text.Libyaml layer - it is not propagated anywhere else).
This would break code using Text.Libyaml because it adds extra fields into the
EventSequenceStart !Tag !SequenceStyle !Anchor EventMappingStart !Tag !MappingStyle !Anchor
...however, I think this is the only sensible way to expose this information. It's definitely an omission at present (although it might very well be an intentional one!). The
snoyberg left a comment
Definitely an oversight on my part, thanks for catching this. Can you additionally add a version bump, update the ChangeLog, and add
Removed the len stuff for tag handling - should be functionally identical. We'd get into trouble anyway if a tag contained a null but that's illegal (at least in YAML 1.2 - http://yaml.org/spec/1.2/spec.html#ns-uri-char).
Haven't touched the len stuff with the value. Felt like a step too far for this change.