Skip to content

Commit 9cb2a3b

Browse files
Fix bug wit R arguments and incidental multiple matches (#3064)
Fixes <img width="628" height="263" alt="image" src="https://github.com/user-attachments/assets/1fdd134e-3e53-4949-9182-179057b68aad" />
1 parent 019c28f commit 9cb2a3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

queries/r.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@
4343
(arguments
4444
(
4545
(argument) @_.leading.endOf
46+
.
4647
(comma)
4748
)?
4849
.
4950
(argument) @argumentOrParameter
5051
.
5152
(
5253
(comma)
54+
.
5355
(argument) @_.trailing.startOf
5456
)?
5557
) @_dummy
@@ -63,13 +65,15 @@
6365
(parameters
6466
(
6567
(parameter) @_.leading.endOf
68+
.
6669
(comma)
6770
)?
6871
.
6972
(parameter) @argumentOrParameter
7073
.
7174
(
7275
(comma)
76+
.
7377
(parameter) @_.trailing.startOf
7478
)?
7579
) @_dummy

0 commit comments

Comments
 (0)