From bb6fc62399a26ae236c260d5c1d1df51aa563c07 Mon Sep 17 00:00:00 2001 From: Skylar Hill Date: Fri, 5 Jun 2026 02:29:23 -0400 Subject: [PATCH] Add Hare textobjects (#15745) --- runtime/queries/hare/textobjects.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 runtime/queries/hare/textobjects.scm diff --git a/runtime/queries/hare/textobjects.scm b/runtime/queries/hare/textobjects.scm new file mode 100644 index 00000000..de06f799 --- /dev/null +++ b/runtime/queries/hare/textobjects.scm @@ -0,0 +1,23 @@ +(function_declaration) @function.around + +(function_declaration + body: (_) @function.inside) + +(function_declaration + (fndec_attrs + (fndec_attr "@test"))) @test.around + +(function_declaration + (fndec_attrs + (fndec_attr "@test")) + body: (_) @test.inside) + +(parameter) @parameter.around + +(switch_case) @parameter.around + +(comment) @comment.inside + +(comment)+ @comment.around + +(type_declaration) @class.around -- 2.51.2