aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/go/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/go/textobjects.scm')
-rw-r--r--runtime/queries/go/textobjects.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queries/go/textobjects.scm b/runtime/queries/go/textobjects.scm
index a48ccce1..df1b0866 100644
--- a/runtime/queries/go/textobjects.scm
+++ b/runtime/queries/go/textobjects.scm
@@ -26,3 +26,8 @@
(comment) @comment.inside
(comment)+ @comment.around
+
+((function_declaration
+ name: (identifier) @_name
+ body: (block)? @test.inside) @test.around
+ (#match? @_name "^Test"))