TOML 1.1 allows inline tables to span multiple lines, with optional trailing commas and comments between key-value pairs (spec PR #904).
# This is valid TOML 1.1:
contact = {
name = "Donald Duck", # comments allowed
email = "donald@duck.com", # trailing comma allowed
}
# Nested multiline inline tables:
config = {
personal = {
name = "Donald Duck",
email = "donald@duckburg.com",
},
work = {
name = "Coin cleaner",
email = "donald@ScroogeCorp.com",
},
}
Current behavior
ktoml 0.7.1 crashes with:
Requested character count -1 is less than zero
So what must be supported changes:
- Newlines allowed between key-value pairs (via
ws-comment-newline)
- Trailing comma permitted after the last key-value pair
- Comments allowed inside multiline inline tables
References
#360 - could be related, to this work, so will see how it goes
TOML 1.1 allows inline tables to span multiple lines, with optional trailing commas and comments between key-value pairs (spec PR #904).
Current behavior
ktoml 0.7.1 crashes with:
So what must be supported changes:
ws-comment-newline)References
#360 - could be related, to this work, so will see how it goes