mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
fix(r): resolve highlight regressions
This commit is contained in:
parent
fa19150d00
commit
f0e3b5c5fe
2 changed files with 15 additions and 9 deletions
|
|
@ -51,6 +51,7 @@
|
|||
"$"
|
||||
"@"
|
||||
":"
|
||||
"!"
|
||||
"special"
|
||||
] @operator
|
||||
|
||||
|
|
@ -86,6 +87,12 @@
|
|||
(call
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(extract_operator
|
||||
rhs: (identifier) @variable.member)
|
||||
|
||||
function: (extract_operator
|
||||
rhs: (identifier) @function.method.call)
|
||||
|
||||
; Parameters
|
||||
(parameters
|
||||
(parameter
|
||||
|
|
@ -110,12 +117,7 @@
|
|||
(function_definition
|
||||
name: "\\" @operator)
|
||||
|
||||
[
|
||||
"in"
|
||||
(return)
|
||||
(next)
|
||||
(break)
|
||||
] @keyword
|
||||
(return) @keyword.return
|
||||
|
||||
[
|
||||
"if"
|
||||
|
|
@ -126,6 +128,9 @@
|
|||
"while"
|
||||
"repeat"
|
||||
"for"
|
||||
"in"
|
||||
(break)
|
||||
(next)
|
||||
] @keyword.repeat
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue