feat: multiline array support to the toml parser#176
Conversation
|
Hey, thanks for this PR! I'll try to take a closer look and try this out this weekend. I've noticed a few things right away. I don't think the case where inline-array items come after the multiline features array is handled. The type declaration of Somewhat related, with TOML 1.1 support landing in cargo, there is now also the possibility of multiline inline-tables. I'm not sure if that changes anything about this PR, just came to mind :) |
|
I believed that everything would be much simpler) Honestly, I didn't even know that multiline inline-tables had been added. |
🫂
Even if this PR "only" adds support for multi-line features, that would still be an improvement worth while :) |
Summary
This PR adds support for parsing multiline arrays in
Cargo.toml, specifically addressingfeatureslists that span multiple lines.Relates to issue #77.
Changes
lua/crates/toml.lualogic to detect multiline array starts and accumulate content until the closing bracket.?optional check for closing bracket) to correctly fallback to the multiline parser when appropriate.test/multiline_spec.luaandtest/repro_spec.luacovering:Notes