Skip to content

Commit d34e880

Browse files
committed
fix namedFunction query
1 parent 4bc8d4f commit d34e880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queries/r.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
(binary_operator
6969
;;!! abc <- function(x){ }
7070
;;! ^^^
71-
lhs: (identifier) @functionName
71+
lhs: (identifier) @functionName @functionName.leading.endOf
7272
rhs: (function_definition
7373
name: "function"
7474
parameters: (parameters)
7575
body: (braced_expression) @interior
7676
)
77-
) @namedFunction
77+
) @namedFunction @_.domain
7878

7979
;;!! foo()
8080
;;! ^^^^^

0 commit comments

Comments
 (0)