aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/java/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/java/textobjects.scm')
-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