From 9e0fdd58d1faa922720641e89998b4803a4a0320 Mon Sep 17 00:00:00 2001 From: Kalpaj Chaudhari Date: Sun, 10 Mar 2024 08:53:33 +0530 Subject: [PATCH] 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 --- runtime/queries/java/textobjects.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/queries/java/textobjects.scm b/runtime/queries/java/textobjects.scm index a932c7934553..b0e73a0a75db 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