diff --git a/CHANGELOG.md b/CHANGELOG.md index 30219771..32dada88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ This name should be decided amongst the team before the release. ### Fixed - [#779](https://github.com/tweag/topiary/pull/779) Load relevant grammars before CLI tests +- [#799](https://github.com/tweag/topiary/pull/799) Line break after table-less pairs in TOML ## v0.5.1 - Fragrant Frangipani - 2024-10-22 diff --git a/topiary-cli/tests/samples/expected/toml.toml b/topiary-cli/tests/samples/expected/toml.toml index d23e03ff..5fe7a547 100644 --- a/topiary-cli/tests/samples/expected/toml.toml +++ b/topiary-cli/tests/samples/expected/toml.toml @@ -1,3 +1,8 @@ +# Table-less pairs (#798) +foo = "bar" +baz = 'quux' +abc = 123 + [package] name = "topiary" diff --git a/topiary-cli/tests/samples/input/toml.toml b/topiary-cli/tests/samples/input/toml.toml index 4668dccd..8b139eca 100644 --- a/topiary-cli/tests/samples/input/toml.toml +++ b/topiary-cli/tests/samples/input/toml.toml @@ -1,3 +1,7 @@ +# Table-less pairs (#798) +foo = "bar" +baz = 'quux' +abc = 123 [package] diff --git a/topiary-queries/queries/toml.scm b/topiary-queries/queries/toml.scm index 6081dfd3..945472f9 100644 --- a/topiary-queries/queries/toml.scm +++ b/topiary-queries/queries/toml.scm @@ -19,6 +19,10 @@ (comment) ] @append_hardline +(document + (pair) @append_hardline +) + (table (pair) @append_hardline )