Skip to content

Commit

Permalink
treesitter: Add textobjects for native funcs and constructors
Browse files Browse the repository at this point in the history
This allows native functions and constructors to be accessible as part
of goto_{next,prev}_func.

Change-Id: Ia1234004e8b38e1c5871331a38fcf4f267da935e
  • Loading branch information
daedroza committed Mar 4, 2024
1 parent cc43e35 commit c9c283a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/queries/java/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
(method_declaration
body: (_)? @function.inside) @function.around

(constructor_declaration
body: (_) @function.inside) @function.around

(interface_declaration
Expand Down

0 comments on commit c9c283a

Please sign in to comment.