aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/v/textobjects.scm
blob: 40eb101fe5fba7fc57c56404c6569ed7a00735fa (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
(function_declaration
  body: (block)? @function.inside) @function.around

((function_declaration
   name: (identifier) @_name
   body: (block)? @test.inside) @test.around
 (#match? @_name "^test"))

(fn_literal
  body: (block)? @function.inside) @function.around

(parameter_list
  ((_) @parameter.inside . ","? @parameter.around) @parameter.around)

(call_expression
  (argument_list
    ((_) @parameter.inside) @parameter.around))

(struct_declaration
  (struct_field_declaration_list) @class.inside) @class.around

(struct_field_declaration_list
  ((_) @parameter.inside) @parameter.around)

(comment) @comment.inside
(comment)+ @comment.around