nvim-treesitter/runtime/queries/r/locals.scm

23 lines
403 B
Scheme
Raw Normal View History

2021-03-09 21:06:07 +02:00
; locals.scm
(function_definition) @local.scope
2021-03-09 21:06:07 +02:00
2024-06-15 14:39:06 +02:00
(argument
2024-01-06 15:05:50 +09:00
name: (identifier) @local.definition)
2024-06-15 14:39:06 +02:00
(parameter
2024-01-06 15:05:50 +09:00
name: (identifier) @local.definition)
2021-03-09 21:06:07 +02:00
2024-06-15 14:39:06 +02:00
(binary_operator
lhs: (identifier) @local.definition
operator: "<-")
(binary_operator
lhs: (identifier) @local.definition
operator: "=")
(binary_operator
operator: "->"
rhs: (identifier) @local.definition)
2021-03-09 21:06:07 +02:00
(identifier) @local.reference