mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
Update queries for R language.
This commit is contained in:
parent
800df0cf42
commit
702114270b
2 changed files with 9 additions and 9 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
; highlights.scm
|
; highlights.scm
|
||||||
|
|
||||||
(call function: (identifier) @function)
|
(call function: (identifier) @function)
|
||||||
(namespace_get function: (identifier) @function.method)
|
(namespace_get function: (identifier) @method)
|
||||||
(namespace_get_internal function: (identifier) @function.method)
|
(namespace_get_internal function: (identifier) @method)
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(formal_parameters (identifier) @variable.parameter)
|
(formal_parameters (identifier) @parameter)
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
; locals.scm
|
; locals.scm
|
||||||
|
|
||||||
(function_definition) @local.scope
|
(function_definition) @scope
|
||||||
|
|
||||||
(formal_parameters (identifier) @local.definition)
|
(formal_parameters (identifier) @definition)
|
||||||
|
|
||||||
(left_assignment name: (identifier) @local.definition)
|
(left_assignment name: (identifier) @definition)
|
||||||
(equals_assignment name: (identifier) @local.definition)
|
(equals_assignment name: (identifier) @definition)
|
||||||
(right_assignment name: (identifier) @local.definition)
|
(right_assignment name: (identifier) @definition)
|
||||||
|
|
||||||
(identifier) @local.reference
|
(identifier) @reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue