aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/nim/textobjects.scm
blob: eaa3e8e8c0a96b5f903684154bf7870e68a91037 (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
(proc_declaration
  body: (_) @function.inside) @function.around
(func_declaration
  body: (_) @function.inside) @function.around
(iterator_declaration
  body: (_) @function.inside) @function.around
(converter_declaration
  body: (_) @function.inside) @function.around
(method_declaration
  body: (_) @function.inside) @function.around
(template_declaration
  body: (_) @function.inside) @function.around
(macro_declaration
  body: (_) @function.inside) @function.around

(type_declaration (_) @class.inside) @class.around

(parameter_declaration
  (symbol_declaration_list) @parameter.inside) @parameter.around

[
  (comment)
  (block_comment)
  (documentation_comment)
  (block_documentation_comment)
] @comment.inside

[
  (comment)+
  (block_comment)
  (documentation_comment)+
  (block_documentation_comment)+
] @comment.around