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

12 lines
346 B
Scheme
Raw Permalink Normal View History

2022-06-03 18:31:45 +04: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$"))