aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/ecma/rainbows.scm
blob: 50f9f8138d25610596b4afe8c81481fb6f75b745 (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
[
  (export_clause)
  (named_imports)
  (statement_block)
  (for_statement)
  (for_in_statement)
  (switch_body)
  (catch_clause "(" ")")
  (parenthesized_expression)
  (object)
  (object_pattern)
  (array)
  (array_pattern)
  (subscript_expression)
  (template_substitution)
  (arguments)
  (class_body)
  (formal_parameters)
  (computed_property_name)
] @rainbow.scope

[
  "(" ")"
  "${" "{" "}"
  "[" "]"
] @rainbow.bracket

(regex "/" @rainbow.bracket) @rainbow.scope