Commit f9c800b
committed
feat: support TOML 1.1 multiline inline tables
Bump toml_edit to 0.25 (toml and toml-span already support TOML 1.1 on
main). Add insert_into_inline_table_with_format to preserve multiline
formatting, indentation style, and trailing comma conventions when
inserting new entries.
Includes comprehensive tests: direct unit tests for the formatting
function (trailing commas, sequential insertions, empty tables, tab
indentation, single-line fallback, existing key updates, non-dependency
tables), integration tests through TomlDocument, and consolidated
parse-only tests for upstream TOML 1.1 support. All tests use inline
insta snapshots.
https://claude.ai/code/session_01FT59TTz4yRy3DPwbREE82u1 parent 488c883 commit f9c800b
5 files changed
Lines changed: 463 additions & 30 deletions
File tree
- crates/pixi_manifest/src/toml
- docs/reference
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments