aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python/rainbows.scm
blob: ce3efe2d10877749860da255eba4623a30721f1b (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
[
  (future_import_statement)
  (import_from_statement)
  (with_clause)
  (parameters)
  (parenthesized_list_splat)
  (argument_list)
  (tuple_pattern)
  (list_pattern)
  (subscript)
  (list)
  (set)
  (tuple)
  (dictionary)
  (dictionary_comprehension)
  (set_comprehension)
  (list_comprehension)
  (generator_expression)
  (parenthesized_expression)
  (interpolation)
  (format_expression)
] @rainbow.scope

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

(string ["{{" "}}"] @rainbow.bracket) @rainbow.scope