on aef00a3 help sign in
helix/runtime/queries/erlang/textobjects.scm
16 lines 489 B history raw
1(function_clause
2 pattern: (arguments (_)? @parameter.inside)
3 body: (_) @function.inside) @function.around
5(anonymous_function
6 (stab_clause body: (_) @function.inside)) @function.around
8(comment (comment_content) @comment.inside) @comment.around
10; EUnit test names.
11; (CommonTest cases are not recognizable by syntax alone.)
12((function_clause
13 name: (atom) @_name
14 pattern: (arguments (_)? @parameter.inside)
15 body: (_) @test.inside) @test.around
16 (#match? @_name "_test$"))