helix/runtime/queries/gleam/textobjects.scm

12 lines
346 B
Scheme

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