aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/tact/indents.scm
blob: 62c532b223047f7fcd01e74c8718caea7d77abf3 (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
; indent
; ------

[
  ; (..., ...)
  (parameter_list)
  (argument_list)

  ; {..., ...}
  (instance_argument_list)

  ; {...; ...}
  (message_body)
  (struct_body)
  (contract_body)
  (trait_body)
  (function_body)
  (block_statement)

  ; misc.
  (binary_expression)
  (return_statement)
] @indent

; outdent
; -------

[
  "}"
  ")"
  ">"
] @outdent

; indent.always
; outdent.always
; align
; extend
; extend.prevent-once