Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/python/textobjects.scm')
-rw-r--r--runtime/queries/python/textobjects.scm23
1 files changed, 3 insertions, 20 deletions
diff --git a/runtime/queries/python/textobjects.scm b/runtime/queries/python/textobjects.scm
index 2b9556fc..0ca26089 100644
--- a/runtime/queries/python/textobjects.scm
+++ b/runtime/queries/python/textobjects.scm
@@ -5,31 +5,14 @@
body: (block)? @class.inside) @class.around
(parameters
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+ (_) @parameter.inside)
(lambda_parameters
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+ (_) @parameter.inside)
(argument_list
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+ (_) @parameter.inside)
(comment) @comment.inside
(comment)+ @comment.around
-
-((function_definition
- name: (identifier) @_name
- body: (block)? @test.inside) @test.around
- (#match? @_name "^test_"))
-
-(list
- (_) @entry.around)
-
-(tuple
- (_) @entry.around)
-
-(set
- (_) @entry.around)
-
-(pair
- (_) @entry.inside) @entry.around