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

[
  "}"
] @branch

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

[
 "}"
 ")"
] @indent_end

(parameter_list ")" @branch)

(comment) @ignore