aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python
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/python
parent67f6c85792dbdbe0ff3f9328874c7ab23ff5569b (diff)
add test textobjects queries for erlang,gleam,go,python,rust
Diffstat (limited to 'runtime/queries/python')
-rw-r--r--runtime/queries/python/textobjects.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queries/python/textobjects.scm b/runtime/queries/python/textobjects.scm
index 5c6a61d1..966e4744 100644
--- a/runtime/queries/python/textobjects.scm
+++ b/runtime/queries/python/textobjects.scm
@@ -16,3 +16,8 @@
(comment) @comment.inside
(comment)+ @comment.around
+
+((function_definition
+ name: (identifier) @_name
+ body: (block)? @test.inside) @test.around
+ (#match? @_name "^test_"))