aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang/textobjects.scm
diff options
context:
space:
mode:
authorMichael Davis2022-06-20 02:36:33 +0000
committerMichael Davis2022-06-21 16:32:03 +0000
commit9f676dab57e6421dd4c33a7ccf16e12cfb9b62cf (patch)
tree10555a5cbc5dc3b6af56fcc00c05307bb3e1b780 /runtime/queries/erlang/textobjects.scm
parent67f6c85792dbdbe0ff3f9328874c7ab23ff5569b (diff)
add test textobjects queries for erlang,gleam,go,python,rust
Diffstat (limited to 'runtime/queries/erlang/textobjects.scm')
-rw-r--r--runtime/queries/erlang/textobjects.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/queries/erlang/textobjects.scm b/runtime/queries/erlang/textobjects.scm
index c46b5c6f..013629f8 100644
--- a/runtime/queries/erlang/textobjects.scm
+++ b/runtime/queries/erlang/textobjects.scm
@@ -6,3 +6,11 @@
(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$"))