aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorKalpaj Chaudhari2024-03-10 03:23:33 +0000
committerGitHub2024-03-10 03:23:33 +0000
commitc145999bff81f763a9e2d20d28c79f32bbd1306b (patch)
tree302ea19d87387dc2207db72b6189ee34fab77605 /runtime
parent3bd493299fe632a7ff09fbd4c92c702ba3d0853f (diff)
treesitter: Add textobjects for native funcs and constructors (#9806)
This allows native functions and constructors to be accessible as part of goto_{next,prev}_func. Change-Id: Ia1234004e8b38e1c5871331a38fcf4f267da935e
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/java/textobjects.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/java/textobjects.scm b/runtime/queries/java/textobjects.scm
index a932c793..b0e73a0a 100644
--- a/runtime/queries/java/textobjects.scm
+++ b/runtime/queries/java/textobjects.scm
@@ -1,4 +1,7 @@
(method_declaration
+ body: (_)? @function.inside) @function.around
+
+(constructor_declaration
body: (_) @function.inside) @function.around
(interface_declaration