We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Julia 1.8.3 and 1.9.0-rc3
import TOML TOML.parse("foo\t=1")
gives
ERROR: TOML Parser error: none:1:4 error: invalid bare key character: '\t' foo =1 ^ Stacktrace: [1] parse @ ./toml_parser.jl:441 [inlined] [2] parse(str::String) @ TOML /opt/julias/julia-1.8.3/share/julia/stdlib/v1.8/TOML/src/TOML.jl:71 [3] top-level scope @ REPL[2]:1
This is fine
TOML.parse("\tfoo \t=\t1")
The spec https://toml.io/en/v1.0.0 says
Whitespace means tab (0x09) or space (0x20).
and
Keys are on the left of the equals sign and values are on the right. Whitespace is ignored around key names and values.
https://www.toml-lint.com/ seems to accept tab right after the key.
The text was updated successfully, but these errors were encountered:
Allow tab after key name in TOML.parse (#51622)
8180240
Fixes JuliaLang/TOML.jl#52
78b7a21
Fixes JuliaLang/TOML.jl#52 (cherry picked from commit 8180240)
Successfully merging a pull request may close this issue.
On Julia 1.8.3 and 1.9.0-rc3
gives
This is fine
The spec https://toml.io/en/v1.0.0 says
and
https://www.toml-lint.com/ seems to accept tab right after the key.
The text was updated successfully, but these errors were encountered: