1
0
mirror of https://github.com/helix-editor/helix.git synced 2024-12-24 08:51:55 +04:00
helix-mirror/runtime/queries/erlang/textobjects.scm

17 lines
489 B
Scheme
Raw Normal View History

2022-06-02 03:40:05 +04:00
(function_clause
pattern: (arguments (_)? @parameter.inside)
body: (_) @function.inside) @function.around
(anonymous_function
(stab_clause body: (_) @function.inside)) @function.around
(comment (comment_content) @comment.inside) @comment.around
; EUnit test names.
; (CommonTest cases are not recognizable by syntax alone.)
((function_clause
name: (atom) @_name
pattern: (arguments (_)? @parameter.inside)
body: (_) @test.inside) @test.around
(#match? @_name "_test$"))