Comments (5)
The TOML ABNF only lists the lower-case: https://github.com/toml-lang/toml/blob/1.0.0/toml.abnf#L127-L129, so according to that an upper-case isn't valid.
I don't know if there's a specific reason for that. I'll leave this open and I'll make a proposal to add upper-case too in the next version.
from toml-test.
Note that the ABNF file also allows only uppercase hex digits, which is contrary to what the spec text says.
from toml-test.
It's confusing: text in ABNF is case-insensitive, so "A"
can also mean "a"
. In practice though, sometimes (perhaps even often?) it is interpreted as case-sensitive, so it can be a bit murky in practice. In this case, the accompanying TOML specification text explicitly mentions hex can be lower or upper case so that removes any doubt.
For the integer prefixes it uses codepoints instead of just "b"
, so that is case sensitive: this only applies to strings not codepoints.
from toml-test.
Yeah, it may be one of the (IMHO, completely obnoxious) matter of taste decisions encoded in the standard. There's likewise no technical reason to disallow newlines inside inline tables, or allow trailing commas in arrays but disallows them in inline tables.
from toml-test.
from toml-test.
Related Issues (20)
- Installation from conda-forge
- Bug in Test Case: valid/string/multiline-quotes HOT 2
- Add tests for unicode in bare keys
- Add test for tab character HOT 2
- Add tests for invalid encodings in all string types HOT 2
- Generate tests from the spec? HOT 8
- Add tests for "Permit more control characters in comments"
- Contradicting tests `invalid/no-seconds.toml` and `valid/no-seconds.toml` HOT 6
- Millisecond truncation is incorrect HOT 1
- Millisecond decoder tests pass with second precision output HOT 1
- Transfer to the toml-lang organisation? HOT 7
- Split `invalid/float/trailing-us-exp.toml` into two tests HOT 5
- valid/table/array-one fails when using inline array and table HOT 2
- Consider adding some performance tests HOT 1
- Invalid Unicode Escapes HOT 4
- [Valid Tests] Add Extra Spaces in Inline Tables HOT 1
- Clarify if - is permitted as a starting character in bare keys (toml 1.0.0) HOT 1
- Add tests for newlines within an array nested in an inline table
- Inconsistent test result of '+inf' HOT 4
- Add a test for oversized floating-point literals HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toml-test.