aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rust/indents.scm
blob: 3c44dcbaf9ba4aac43a59686b24d2bdc9fec648a (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
[
  (mod_item)
  (struct_item)
  (enum_item)
  (impl_item)
  (for_expression)
  (struct_expression)
  (match_expression)
  (tuple_expression)
  (match_arm)
  (match_block)
  (if_let_expression)
  (call_expression)
  (assignment_expression)
  (arguments)
  (block)
  (where_clause)
  (use_list)
] @indent

[
  "where"
  "("
  ")"
  "["
  "]"
  "{"
  "}"
] @branch

[
  (line_comment)
  (raw_string_literal)
] @ignore