Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c6eb582

Browse files
committedApr 24, 2024·
Use compact formatting for hook priorities
1 parent 328309f commit c6eb582

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎corpus/unit.spicy.expected

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type X = unit {
8080

8181
type X = unit {
8282
x: uint8;
83-
on x priority = 100 {}
83+
on x priority=100 {}
8484
};
8585

8686
type X = unit {

‎src/query.scm

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
(comment)? @do_nothing
5353
)
5454

55+
(
56+
hook_priority
57+
"priority" @append_antispace
58+
.
59+
"=" @append_antispace
60+
)
61+
5562
("struct"
5663
(field_decl) @append_empty_softline
5764
.

0 commit comments

Comments
 (0)
Please sign in to comment.