toml icon indicating copy to clipboard operation
toml copied to clipboard

Strings with apostrophes in within inline tables lead to empty arrays

Open Artemis21 opened this issue 2 years ago • 1 comments

The following TOML:

foo = [ { x = "'" } ]

Gets parsed as:

{'foo': []}

I cannot seem to reduce this example any further - the following all parse as I expect:

foo = [ "'" ]
bar = { x = "'" }

[[baz]]
x = "'"

Artemis21 avatar Nov 18 '23 19:11 Artemis21

Also, the following still gets parsed as an empty array:

foo = [ { x = "abc'def" }, { y = 2 } ]

... it seems to affect the whole array, and the apostrophe doesn't have to be the only thing in the string.

Artemis21 avatar Nov 18 '23 19:11 Artemis21