go-yaml icon indicating copy to clipboard operation
go-yaml copied to clipboard

Quote is required even if it begins with backquote.

Open k1LoW opened this issue 10 months ago • 1 comments

Before submitting your PR, please confirm the following.

  • [x] Describe the purpose for which you created this PR.
  • [x] Create test code that corresponds to the modification

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.

k1LoW avatar Mar 28 '24 07:03 k1LoW

: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
@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   76.02%   76.02%           
=======================================
  Files          13       13           
  Lines        4692     4692           
=======================================
  Hits         3567     3567           
  Misses        866      866           
  Partials      259      259           

codecov-commenter avatar Mar 28 '24 07:03 codecov-commenter