From a22e819ea4e15bd5405d52c73f30cc3e8d18d6a2 Mon Sep 17 00:00:00 2001 From: Vivek Kethineni Date: Thu, 4 Jan 2024 15:20:03 -0600 Subject: [PATCH 1/2] added field_declaration_list and field_initializer_list as parameter textobjects --- runtime/queries/rust/textobjects.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/queries/rust/textobjects.scm b/runtime/queries/rust/textobjects.scm index 837f981e7de0..bc71bc763d4d 100644 --- a/runtime/queries/rust/textobjects.scm +++ b/runtime/queries/rust/textobjects.scm @@ -34,6 +34,12 @@ (arguments ((_) @parameter.inside . ","? @parameter.around) @parameter.around) +(field_declaration_list + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + +(field_initializer_list + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + [ (line_comment) (block_comment) From 00cc9aa2a3af4edfe966a11367dab6f1680de18d Mon Sep 17 00:00:00 2001 From: Vivek Kethineni Date: Fri, 16 Feb 2024 13:31:10 -0600 Subject: [PATCH 2/2] removed field_declaration_listt from textobjects.scm --- runtime/queries/rust/textobjects.scm | 3 --- 1 file changed, 3 deletions(-) diff --git a/runtime/queries/rust/textobjects.scm b/runtime/queries/rust/textobjects.scm index bc71bc763d4d..df26331d8389 100644 --- a/runtime/queries/rust/textobjects.scm +++ b/runtime/queries/rust/textobjects.scm @@ -34,9 +34,6 @@ (arguments ((_) @parameter.inside . ","? @parameter.around) @parameter.around) -(field_declaration_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - (field_initializer_list ((_) @parameter.inside . ","? @parameter.around) @parameter.around)