-
Notifications
You must be signed in to change notification settings - Fork 20
Nested arrays of tables misbehave #82
Copy link
Copy link
Open
Description
Hi,
I’m having some problems with nested arrays of tables.
Arrays of tables are supported:
# Toml.Parser.from_string "foo=[{bar=42}]" |> Toml.Parser.unsafe |> Toml.Printer.string_of_table;;
- : string = "[[foo]]\nbar = 42\n"However, adding one additional level of nesting generates invalid TOML:
# Toml.Parser.from_string "foo=[[{bar=42}]]" |> Toml.Parser.unsafe |> Toml.Printer.string_of_table;;
- : string = "foo = [[[]]\nbar = 42\n]\n"The source stream is properly parsed, but the printer has trouble generating a meaningful output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels