Skip to content

Commit d29f57b

Browse files
committed
WIP More formatting
1 parent ec70123 commit d29f57b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

topiary-queries/queries/pact.scm

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[
22
(atom)
33
(string)
4+
(symbol)
45
(doc_string)
6+
(reference)
57
] @leaf
68

79
; All named nodes can be interleaved by empty lines
@@ -10,13 +12,23 @@
1012
[
1113
(atom)
1214
(comment)
13-
(module_identifier)
15+
(def_identifier)
16+
(doc_string)
1417
(module_governance)
18+
(module_identifier)
19+
(reference)
1520
(string)
16-
(doc_string)
17-
(def_identifier)
21+
(symbol)
1822
] @prepend_space @append_space
1923

24+
[
25+
(interface)
26+
(module)
27+
(namespace)
28+
(s_expression)
29+
(use)
30+
] @append_hardline
31+
2032
(comment) @append_hardline
2133

2234
; Remove spaces following opening/preceding closing parens in all sexprs
@@ -91,6 +103,8 @@
91103
"]" @prepend_empty_softline @prepend_indent_end
92104
)
93105

106+
(list "," @append_spaced_softline)
107+
94108
; Constant definitions
95109
; Start the indentation block after the value
96110
(defconst

0 commit comments

Comments
 (0)