MaybeJustJames / yaml

Work with YAML in Elm.
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

Test failure: Comment immediately after the comma in a multiline inline list #5

Closed MaybeJustJames closed 4 years ago

MaybeJustJames commented 4 years ago

This causes the comment to be parsed as part of the next element.

"""[ aaa,# A comment
     bbb, # a dumb comment
     ccc
   ]"""

is parsed as:

List_ [String_ "aaa",String_ "# A comment\n           bbb",String_ "ccc"]

but should be parsed as:

List_ [String_ "aaa",String_ "bbb",String_ "ccc"]