aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/capnp/indents.scm
blob: cc2f4d756007422dcbe6cab60e7b5ac2d5805eda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[
  (annotation_targets)
  (const)
  (enum)
  (interface)
  (implicit_generics)
  (generics)
  (group)
  (method_parameters)
  (named_return_types)
  (struct)
  (union)
  (field)
] @indent.begin

((struct_shorthand
  (property)) @indent.align
  (#set! indent.open_delimiter "(")
  (#set! indent.close_delimiter ")"))

((method
  (field_version)) @indent.align
  (#set! indent.open_delimiter field_version))

((const_list
  (const_value)) @indent.align
  (#set! indent.open_delimiter "[")
  (#set! indent.close_delimiter "]"))

(concatenated_string) @indent.align

[
  "}"
  ")"
] @indent.end @indent.branch

[
  (ERROR)
  (comment)
] @indent.auto