goccy / go-yaml

YAML support for the Go language
MIT License
1.12k stars 129 forks source link

Quote is required even if it begins with backquote. #440

Closed k1LoW closed 1 month ago

k1LoW commented 5 months ago

Before submitting your PR, please confirm the following.

Hi @goccy!

I noticed when using a mix of goccy/go-yaml and go-yaml/yaml that backquotes also cannot be used at the beginning of a token.

https://go.dev/play/p/ysabzaYClh3

I also got an error at https://www.yamllint.com/.

According to https://yaml.org/spec/1.2.2/ backquote (`) is reserved.

The “@” (x40, at) and “`” (x60, grave accent) are reserved for future use.

Thank you.

codecov-commenter commented 5 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.02%. Comparing base (4653a1b) to head (e8b0e1d). Report is 8 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #440 +/- ## ======================================= Coverage 76.02% 76.02% ======================================= Files 13 13 Lines 4692 4692 ======================================= Hits 3567 3567 Misses 866 866 Partials 259 259 ```