better-toml
better-toml copied to clipboard
Hexadecimal values classed as errors
Hex codes throw errors when used without being wrapped in quotes.
We ran into this also in some toml fields that look like this:
[[licenses.clarify]]
name = "webpki"
expression = "ISC"
license-files = [
{ path = "LICENSE", hash = 0x001c7e6c }
]
cc @Jake-Shadle
The toml spec does specify that hexadecimal numbers should be supported, so would be great to add support for it in the extension (or at least not categorize as errors).
This looks to be a duplicate of #12. I think it's time for a fork though, the author has no public activity on GitHub for the entire year.
For reference, "Even better TOML" exists and does not have this issue as it supports toml 1.0.
Like @barafael stated "Even better TOML" (also called "Taplo") does not have this problem. Although it is still in its early stages it works in most cases. But as this repo ("Better TOML") did not have any updates since 2019 it might be worth a look.