aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua/indents.scm
blob: e7465aa06beb799098f6acb494fb58885eb300b6 (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
[
  (function_definition)
  (variable_declaration)
  (local_variable_declaration)
  (field)
  (local_function)
  (function)
  (if_statement)
  (for_statement)
  (for_in_statement)
  (repeat_statement)
  (return_statement)
  (while_statement)
  (table)
  (arguments)
  (do_statement)
] @indent

[
  "end"
  "until"
  "{"
  "}"
  "("
  ")"
  "then"
  (else)
  (elseif)
] @branch

(comment) @ignore