-
Notifications
You must be signed in to change notification settings - Fork 109
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
Dotted keys are not supported #91
Comments
Just spotted #73 and tried using that branch instead, and I can confirm that it parses this successfully |
Support for toml 0.5 is tracked in #58. |
Some initial notes when researching this Table-types summaryTables
Dotted Keys
Inline Tables
How
|
The idea I'm playing with and trying to vet was briefly mentioned in #122, of having pub struct Table {
...
format: TableFormat,
}
pub enum TableFormat {
ImplicitTable,
DottedTable,
InlineTable(...),
Table(...),
}
TODO Finish filing this out
|
Some updates
Overall, at this point, I am looking at keeping InlineTable and Table separate. There will be a way to mark either table as Dotted. I'll then add position information to I'm thinking of rolling out support gradually. First, we'll just parse the dotted tables without preserving their style and maybe not handling all error cases correctly. We'll then slowly add in those features. |
Thanks for digging into this. Something slightly related: you're probably familiar with #63 and table positioning. I think we should make |
I was thinking of that! Glad we are on the same page. I've also wondered if we should switch away from formatting with |
(and yes, global table position was inspiring my table key positioning idea so we don't need markers) |
Sure, we should only use |
This is a step towards toml-rs#91
This is part of toml-rs#91
Random implementation notes from order preserving
|
I'm splitting #163 out and closing this |
Status
The following TOML file is not parsed successfully:
It fails with
However the toml crate parses this correctly, and looking at the ABNF grammar I think it is a valid TOML file
The text was updated successfully, but these errors were encountered: