summaryrefslogtreecommitdiff
path: root/queries/dart/indents.scm
blob: e01cc238d20b4b9dd459cd0662ee3bc3052702d5 (plain)
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
[
  (class_body)
  (function_body)
  (function_expression_body)
  (declaration (initializers))
  (switch_block)
  (if_statement)
  (formal_parameter_list)
  (formal_parameter)
  (list_literal)
  (return_statement)
  (arguments)
] @indent

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

; this one is for dedenting the else block
(if_statement (block) @branch)

(comment) @ignore