helix/runtime/queries/lua/textobjects.scm
2024-09-13 13:28:20 -05:00

19 lines
421 B
Scheme

(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)