summaryrefslogtreecommitdiff
path: root/queries/javascript/indents.scm
blob: f3796dbafdc8d3aa92d0f10b831319f0b5e026d0 (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
28
29
30
31
32
; inherits: (jsx)

[
  (object)
  (array)
  (arguments)
  (statement_block)
  (object_pattern)
  (class_body)
  (method_definition)
  (named_imports)
  (binary_expression)
  (return_statement)
  (template_substitution)
  (expression_statement (call_expression))
  (export_clause)
] @indent

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

[
  (comment)
  (template_string)
] @ignore