aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go/indents.scm
blob: 5f0039ac4cd8e59be48751f0fd637fb8233cff96 (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
[
  (import_declaration)
  (const_declaration)
  (var_declaration)
  (type_declaration)
  (func_literal)
  (literal_value)
  (expression_case)
  (communication_case)
  (type_case)
  (default_case)
  (block)
  (call_expression)
  (parameter_list)
  (struct_type)
] @indent.begin

[
  "}"
] @indent.branch

(const_declaration ")" @indent.branch)
(import_spec_list ")" @indent.branch)
(var_declaration ")" @indent.branch)

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

(parameter_list ")" @indent.branch)

(comment) @indent.ignore