Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings with apostrophes in within inline tables lead to empty arrays #436

Open
Artemis21 opened this issue Nov 18, 2023 · 1 comment
Open

Comments

@Artemis21
Copy link

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
Copy link
Author

Artemis21 commented Nov 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant