Skip to content

Commit

Permalink
treesitter: Add textobjects for native funcs and constructors (#9806)
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 authored Mar 10, 2024
1 parent 3bd4932 commit c145999
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

1 comment on commit c145999

@gzmorell
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit message should indicate this is for Java

Please sign in to comment.