github.com/chainguard-dev/yam@v0.0.7/pkg/yam/testdata/format/comments_expected.yaml (about)

     1  # This is a comment that spans
     2  # multiple lines.
     3  a:
     4    # initial comment
     5    - 1
     6    - 2
     7    # And finally
     8    - 3
     9    # Trailing comment.
    10    - "And here's a string!"
    11    - |
    12        And a multi-line
    13        string, too!
    14  
    15  b:
    16    # comment before a mapping
    17    - this: is cool
    18      and: this is also cool