From 60582c4f15c1a52a12d2990ebb7360046f0e78dd Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Mon, 11 Aug 2025 04:42:48 +0200 Subject: [PATCH] Fix bug wit R arguments and incidental multiple matches --- queries/r.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queries/r.scm b/queries/r.scm index fca8200a0c..f70cd30cdb 100644 --- a/queries/r.scm +++ b/queries/r.scm @@ -43,6 +43,7 @@ (arguments ( (argument) @_.leading.endOf + . (comma) )? . @@ -50,6 +51,7 @@ . ( (comma) + . (argument) @_.trailing.startOf )? ) @_dummy @@ -63,6 +65,7 @@ (parameters ( (parameter) @_.leading.endOf + . (comma) )? . @@ -70,6 +73,7 @@ . ( (comma) + . (parameter) @_.trailing.startOf )? ) @_dummy