git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/internal/toml-test/tests/valid/comment/everywhere.toml (about)

     1  # Top comment.
     2    # Top comment.
     3  # Top comment.
     4  
     5  # [no-extraneous-groups-please]
     6  
     7  [group] # Comment
     8  answer = 42 # Comment
     9  # no-extraneous-keys-please = 999
    10  # Inbetween comment.
    11  more = [ # Comment
    12    # What about multiple # comments?
    13    # Can you handle it?
    14    #
    15            # Evil.
    16  # Evil.
    17    42, 42, # Comments within arrays are fun.
    18    # What about multiple # comments?
    19    # Can you handle it?
    20    #
    21            # Evil.
    22  # Evil.
    23  # ] Did I fool you?
    24  ] # Hopefully not.
    25  
    26  # Make sure the space between the datetime and "#" isn't lexed.
    27  dt = 1979-05-27T07:32:12-07:00  # c
    28  d = 1979-05-27 # Comment