Debian Codegraph @

runtime/queries/ponylang/indents.scm

raw symbols SCIP
1 ; queries for helix to do automatic indentation upon hitting enter
2 ; TODO: needs more work, cover more cases
3 [
4 (entity)
5 (method)
6 (behavior)
7 (constructor)
8 (block)
9 (tuple)
10 (grouped)
11 ] @indent
12 (match_case body: (block) @indent)
13 ; ffi_call and call
14 (_ arguments: (_) @indent)
15 (assignment right: (_) @indent
16
17 )
18
19 [
20 (params)
21 (object)
22 ("if")
23 ] @extend
24 (lambda params: (_) @extend)
25
26 [
27 "end"
28 "}"
29 "]"
30 ")"
31 "|"
32 ] @outdent