mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Add support for R language.
This commit is contained in:
parent
df81a91ba9
commit
773ec8eefc
3 changed files with 105 additions and 0 deletions
11
queries/r/locals.scm
Executable file
11
queries/r/locals.scm
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
; locals.scm
|
||||
|
||||
(function_definition) @local.scope
|
||||
|
||||
(formal_parameters (identifier) @local.definition)
|
||||
|
||||
(left_assignment name: (identifier) @local.definition)
|
||||
(equals_assignment name: (identifier) @local.definition)
|
||||
(right_assignment name: (identifier) @local.definition)
|
||||
|
||||
(identifier) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue