Jakob Hellermann
cd3cd621bc
fix(v1): stop escaping `/` in ensure_v1
...
`KdlEntry::ensure_v1` was replacing every `/` in non-raw v1 string literals with `\/`.
While that's allowed in v1 (not in v2), it is not necessary.
`ensure_v2` strips `\/`, as expected.
2026-05-01 00:09:41 +02:00
stormshield-franckp
6841734233
fix(parser): allow trailing space after node ( #151 )
2026-03-23 13:57:00 -07:00
0e4ef622
dd44f5be42
fix(deps): update to winnow 0.7 ( #143 )
2026-03-09 12:37:22 -07:00
Kat Marchán
e1727e7c28
feat(msrv): bump msrv
2025-09-11 15:14:02 -07:00
Kat Marchán
e47ca9c683
fix(fmt+clippy): sigh
2025-09-11 15:07:59 -07:00
adamnemecek
09c2c28688
chore: refactoring ( #140 )
2025-09-04 11:31:02 -07:00
adamnemecek
c95d6ba101
fix(clippy/fmt): ran clippy + cargo fmt ( #129 )
2025-09-04 10:49:59 -07:00
Koi to Coco
564d4aeead
fix(fmt): identifiers equal to a keyword are not quoted #132 ( #137 )
2025-09-04 10:49:05 -07:00
Dion Dokter
758bd63621
Assign document leading format to the first node instead ( #138 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/136
2025-09-04 10:46:52 -07:00
Brooks Rady
439aa63bfc
feat(deps): Absolve `kdl-rs` of `syn` ( #125 )
...
This completes the removal of `syn` from `kdl-rs`s dependency tree!
2025-04-28 11:26:09 -07:00
James Munns
c1680e8c04
docs: Mention comments and whitespace in `format` accessors ( #124 )
2025-04-08 02:46:47 -07:00
YOSHIOKA Takuma
c904e025a2
fix(span): Enable span properly to fix build failure with `span` feature disabled ( #120 )
2025-03-30 14:37:56 -07:00
Michael Cooper
6e61b54fae
docs: Fix version number in KdlDocument::v2_to_v1 ( #122 )
2025-03-30 14:35:54 -07:00
Kat Marchán
ce27425905
fix(v1-fallback): actually fall back. lol ( #119 )
2025-02-17 15:34:39 -08:00
Kat Marchán
266b462a19
feat(msrv): bump msrv to 1.71.1
2025-01-16 19:44:35 -08:00
Kat Marchán
b6b67f62fa
feat(lsp): add LSP server ( #115 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/113
2025-01-16 18:54:34 -08:00
Kat Marchán
82c1f1c076
fix(fallback): play around with fallback logic some more
2025-01-02 16:34:12 -08:00
Kat Marchán
7ec3992ceb
fix(fallback): uggghhhhh oops
2025-01-01 17:46:32 -08:00
Kat Marchán
52a7c2cba1
fix(parser): various tests and bugfixes ( #112 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/108
Fixes: https://github.com/kdl-org/kdl-rs/issues/109
2025-01-01 15:35:05 -08:00
Kat Marchán
f5007fce44
feat(fallback): apply heuristics when doing fallbacks ( #111 )
2025-01-01 14:58:49 -08:00
Kat Marchán
99dec9fa2c
feat(api): unflagged ensure_v2 fns, and docsrs improvements
2024-12-22 12:40:13 -08:00
Kat Marchán
38ae41c86a
docs: update readme and changelog
2024-12-21 18:48:38 -08:00
Kat Marchán
0c59b29a03
fix(fmt): cargo fmt
2024-12-21 17:55:06 -08:00
Kat Marchán
b097c7e21b
fix(clippy): clippy fixes
2024-12-21 17:53:33 -08:00
Kat Marchán
3e8b2f443a
feat(compliance): pull in final extra tests and change VT to newline
2024-12-21 17:47:47 -08:00
Kat Marchán
b332eed4a0
feat(v1): add v2 -> v1 translation and fix translations to not autoformat
2024-12-21 17:37:01 -08:00
Kat Marchán
ec73cdfa05
fix(misc): other tiny clippy/fmt issues
2024-12-20 02:10:48 -08:00
Kat Marchán
37255b0bf6
fix(autoformat): fix autoformatting of v1 -> v2
2024-12-20 02:05:33 -08:00
Kat Marchán
4cbc32246c
fix(clippy): clippy fixes
2024-12-20 01:34:34 -08:00
Kat Marchán
12b2fd2f4f
feat(error): Rename KdlParseFailure back to KdlError
2024-12-20 01:30:42 -08:00
Kat Marchán
c486cda7a5
feat(v1): Add utility to auto-translate v1 to v2
2024-12-20 01:20:17 -08:00
Kat Marchán
6a7248c405
feat(v1): add rudimentary, optional, KDL v1 parsing ( #104 )
...
This is kinda rough right now, since it involves actually pulling in the old kdl v1. Not ideal, but workable as a stepping stone while a real v1 parser gets written.
2024-12-19 23:15:24 -08:00
Kat Marchán
683e87a142
feat(api): update the KdlNode and KdlDocument APIs to be more Vec-like ( #101 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/81
2024-12-19 20:08:53 -08:00
Kat Marchán
4734b0601b
feat(compliance): update to latest 2.0 spec ( #103 )
2024-12-19 12:54:42 -08:00
Kat Marchán
d0366db21f
tests: add a quick test to make sure slashdashes are also being preserved
2024-12-15 18:39:19 -08:00
Kat Marchán
6c468bb5d1
docs: final tweaks to readme and such before next prerelease
2024-12-15 18:18:54 -08:00
Kat Marchán
e65d0546bc
add quick multiline parsing test for a corner case
2024-12-15 18:10:36 -08:00
Kat Marchán
a1919a0e36
feat(parser): Update parser to 2.0.0 ( #100 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/99
2024-12-15 15:42:09 -08:00
Kat Marchán
f31750a048
feat(errors): error collection/recovery and reporting improvements ( #94 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/93
2024-12-14 15:39:27 -08:00
Kat Marchán
cbadb35764
clippy fix and fmt
2024-12-08 23:55:12 -08:00
Tamme Schichler
014c7c57a2
feat(fmt): Configurable autoformat with `FormatConfig` ( #95 )
...
Fixes: https://github.com/kdl-org/kdl-rs/issues/85
2024-12-06 12:59:20 -08:00
Kat Marchán
4d4ef75954
feat(draft): 2.0.0-draft.6 support ( #92 )
...
This just adds support for the new multiline string syntax. There's no other necessary changes to support draft.6.
2024-12-04 13:04:16 -08:00
Kat Marchán
71bd07b57d
zellij example
2024-12-03 20:35:51 -08:00
Kat Marchán
887a5438d3
docs: update readme
2024-12-03 00:27:19 -08:00
Kat Marchán
2802578ba0
feat(parser): update to 2.0.0-draft.5 ( #90 )
2024-12-02 23:26:40 -08:00
Kat Marchán
fb7c92b59f
refactor(parser): refactor number parsing to support generic number types
2024-11-30 20:36:56 -08:00
Ryan Goodfellow
0595955850
feat(value,entry): i128 for integers, autoformat safe KdlEntryFormat ( #91 )
2024-11-29 18:50:14 -08:00
Kenichi Kamiya
11e119263d
fix(fmt): fix formatting error in CI ( #88 )
2024-11-27 13:28:50 -08:00
Kenichi Kamiya
880fa12d34
chore: update link to license file ( #86 )
...
the file has been renamed in 0dbf75c78e
2024-11-27 09:31:19 -08:00
Kat Marchán
d013ece76a
fix(deps): remove nom
2024-10-08 22:48:10 -07:00