aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/go/indents.scm
blob: 28edfe973c0caa920a071f363c9380c395521bb3 (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
41
42
43
44
45
46
47
48
[
  (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)
  (field_declaration_list)
  (interface_type)
] @indent.begin

(literal_value
  "}" @indent.branch)

(block
  "}" @indent.branch)

(field_declaration_list
  "}" @indent.branch)

(interface_type
  "}" @indent.branch)

(const_declaration
  ")" @indent.branch)

(import_spec_list
  ")" @indent.branch)

(var_spec_list
  ")" @indent.branch)

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

(parameter_list
  ")" @indent.branch)

(comment) @indent.ignore