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.scm27
1 files changed, 3 insertions, 24 deletions
diff --git a/runtime/queries/python/textobjects.scm b/runtime/queries/python/textobjects.scm
index 2b9556fc..a52538af 100644
--- a/runtime/queries/python/textobjects.scm
+++ b/runtime/queries/python/textobjects.scm
@@ -5,31 +5,10 @@
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)
-
-(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
+ (_) @parameter.inside)