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
This is not a parser bug, it's intended behaviour. Example 18.8 in the spec uses the ° glyph to represent empty scalars, i.e. it's not meant to have a character representation in the YAML source. This is explained in section 7.2 of the spec, Empty Nodes:
In the examples, empty scalars are sometimes displayed as the glyph “°” for clarity. Note that this glyph corresponds to a position in the characters stream rather than to an actual character.
Other parsers also fail with the same input, as they should:
importYAMLfrom'yaml'constsrc=`plain key: in-line value : # Both empty"quoted key":- entry\n`YAML.parse(src)// throws YAMLSemanticError:// Nested mappings are not allowed in compact mappings
The "Example 8.18. Implicit Block Mapping Entries"
fails with an error:
The text was updated successfully, but these errors were encountered: