Skip to content

Commit

Permalink
Reformat queries
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Oct 5, 2024
1 parent a0cd0f2 commit 6156b93
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/query.scm
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,15 @@
; Unit `if`/`else` blocks.
(unit_if_else
"if" @append_space
"{" @prepend_space
("else" @prepend_space @append_space)?
"{" @prepend_space ("else" @prepend_space @append_space)?
)
(unit_if_else
"{" @append_indent_start @append_hardline
.
; List explicitly so we match the correct {} pair.
[
(comment)
(field_decl)
(comment)
(field_decl)
]*
.
"}" @prepend_indent_end @prepend_hardline
Expand Down

0 comments on commit 6156b93

Please sign in to comment.