helix-mods/runtime/queries/lua/textobjects.scm

19 lines
421 B
Scheme
Raw Normal View History

(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
(table_constructor
(field (_) @entry.inside) @entry.around)