Skip to content

Commit

Permalink
Add element textobject queries for python
Browse files Browse the repository at this point in the history
  • Loading branch information
EpocSquadron committed Sep 5, 2023
1 parent 78063f5 commit ec1e4f4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions runtime/queries/python/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,20 @@
name: (identifier) @_name
body: (block)? @test.inside) @test.around
(#match? @_name "^test_"))

(list
(_) @element.around)

(tuple
(_) @element.around)

(set
(_) @element.around)

(pair
(_) @element.inside) @element.around

(class_definition
(block
(expression_statement
(assignment) @element.around)))

0 comments on commit ec1e4f4

Please sign in to comment.