goccy / go-yaml

YAML support for the Go language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comment after `-` causes subsequent queries to fail

zellyn opened this issue · comments

Describe the bug
A comment after a minus sign on its own line introducing an object can cause subsequent queries to fail.

To Reproduce

https://go.dev/play/p/vh9dhtCnq-e

Expected behavior
A comment after an object minus sign should allow queries to work.

Version Variables

  • Go version: 1.21
  • go-yaml's Version: v1.11.1

Thank you for your report ! I've fixed this issue with #390

Oh wow! Thank you, that was fast! 😂