Skip to content

Commit

Permalink
TOML: Hardline after table-less pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xophmeister committed Dec 2, 2024
1 parent 0f4a5f1 commit ee8b949
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions topiary-cli/tests/samples/expected/toml.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Table-less pairs (#798)
foo = "bar"
baz = 'quux'
abc = 123

[package]

name = "topiary"
Expand Down
4 changes: 4 additions & 0 deletions topiary-cli/tests/samples/input/toml.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Table-less pairs (#798)
foo = "bar"
baz = 'quux'
abc = 123

[package]

Expand Down
4 changes: 4 additions & 0 deletions topiary-queries/queries/toml.scm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
(comment)
] @append_hardline

(document
(pair) @append_hardline
)

(table
(pair) @append_hardline
)
Expand Down

0 comments on commit ee8b949

Please sign in to comment.