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

Failed to parse escaped quote in TOML #20

Closed
oxalica opened this issue Jun 7, 2021 · 1 comment
Closed

Failed to parse escaped quote in TOML #20

oxalica opened this issue Jun 7, 2021 · 1 comment

Comments

@oxalica
Copy link

oxalica commented Jun 7, 2021

I have a toml file:

["\"foo\""]
"\"bar\"" = "\"baz\""

yj -tj <a.toml failed with:

Error parsing TOML: (1, 2): invalid table array key: invalid bare key character: \

According to the TOML specification:

@sclevine
Copy link
Owner

Thanks for the report!

This was due to an upstream issue: pelletier/go-toml#427
It is fixed in v5.1.0, by switching to /~https://github.com/BurntSushi/toml

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

2 participants