mirror of
https://github.com/goccy/go-yaml.git
synced 2026-04-17 22:30:17 +00:00
parseSequenceValue used tk.Column() < seqCol to detect when a sequence item has no value. When an empty `-` is followed by a mapping key at the same column on the next line, the strict `<` missed it and the parser consumed the mapping key as part of the sequence. Added a same-column-different-line check so tokens at the parent level produce a null node instead of being parsed as sequence content. Fixes #766 |
||
|---|---|---|
| .. | ||
| testdata | ||
| color.go | ||
| context.go | ||
| node.go | ||
| option.go | ||
| parser.go | ||
| parser_test.go | ||
| token.go | ||