From 10463fe32c789f49c65d53c9d22621e415a854ea Mon Sep 17 00:00:00 2001 From: Andrey Tkachenko Date: Mon, 23 May 2022 16:24:30 +0400 Subject: Add `parameter.around` text object query --- runtime/queries/c/textobjects.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/queries/c') diff --git a/runtime/queries/c/textobjects.scm b/runtime/queries/c/textobjects.scm index 45f554e2..2a3da66f 100644 --- a/runtime/queries/c/textobjects.scm +++ b/runtime/queries/c/textobjects.scm @@ -10,7 +10,11 @@ (union_specifier body: (_) @class.inside) @class.around -(parameter_declaration) @parameter.inside +(parameter_list + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + +(argument_list + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) (comment) @comment.inside -- cgit v1.2.3-70-g09d2