Skip to content

Commit 8b4f687

Browse files
committed
Use compact formatting for hook priorities
1 parent ab1a222 commit 8b4f687

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)