aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/ruby/rainbows.scm
blob: e67edfb84e5ecdb79af0e5eb89d73900ae058619 (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
[
  (begin_block)
  (end_block)
  (singleton_method)
  (block_parameters)
  (parenthesized_statements)
  (element_reference)
  (argument_list "(" ")")
  (block)
  (destructured_left_assignment)
  (interpolation)
  (string_array)
  (symbol_array)
  (regex)
  (array)
  (hash)
  (method_parameters)
] @rainbow.scope

[
  "#{"
  "{" "}"
  "(" ")"
  "%w(" "%i("
  "[" "]"
  "|"
  "/"
] @rainbow.bracket