Skip to content

Commit 44425ea

Browse files
committed
Fix argument test
1 parent 9a58ae3 commit 44425ea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

queries/r.scm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,17 @@
3535
;;! ^^^^^
3636
(
3737
(arguments
38-
(_)? @_.leading.startOf
38+
(
39+
(argument) @_.leading.endOf
40+
(comma)
41+
)?
3942
.
4043
(argument) @argumentOrParameter
4144
.
42-
(_)? @_.trailing.endOf
45+
(
46+
(comma)
47+
(argument) @_.trailing.startOf
48+
)?
4349
) @_dummy
4450
(#not-type? @argumentOrParameter "comment")
4551
(#single-or-multi-line-delimiter! @argumentOrParameter @_dummy ", " ",\n")

0 commit comments

Comments
 (0)