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

12 lines
346 B
Scheme
Raw Normal View History

2022-06-03 16:31:45 +02:00
(function
parameters: (function_parameters (function_parameter)? @parameter.inside)
body: (function_body) @function.inside) @function.around
(anonymous_function
body: (function_body) @function.inside) @function.around
((function
name: (identifier) @_name
body: (function_body) @test.inside) @test.around
(#match? @_name "_test$"))