aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/lua/textobjects.scm
blob: 6fb2000df40ea38eb38be4a4f72bcb78a9d1b104 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(function_definition
  body: (_) @function.inside) @function.around

(function_declaration
  body: (_) @function.inside) @function.around

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

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

(comment) @comment.inside

(comment)+ @comment.around