aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/cpp/rainbows.scm
blob: ff4882c2d4522e888d56c97cffb5e0873d893ff3 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[
  ; c
  (preproc_params)
  (preproc_defined)
  (argument_list)
  (attribute_specifier)
  (ms_declspec_modifier)
  (declaration_list)
  (parenthesized_declarator)
  (parenthesized_expression)
  (abstract_parenthesized_declarator)
  (array_declarator)
  (compound_statement)
  (initializer_list)
  (compound_literal_expression)
  (enumerator_list)
  (field_declaration_list)
  (parameter_list)
  (for_statement)
  ; (macro_type_specifier) - not part of cpp
  (subscript_expression)
  (subscript_designator)
  (cast_expression)

  ; cpp
  (decltype)
  (explicit_function_specifier)
  (template_parameter_list)
  (template_argument_list)
  (parameter_list)
  (argument_list)
  (structured_binding_declarator)
  (noexcept)
  (throw_specifier)
  (static_assert_declaration)
  (condition_clause)
  (for_range_loop)
  (new_declarator)
  (delete_expression "[" "]")
  (lambda_capture_specifier)
  (sizeof_expression)
] @rainbow.scope

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