toml
toml copied to clipboard
Strings with apostrophes in within inline tables lead to empty arrays
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 = "'"
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.