mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
Highlight operators + improve consistency with Vim syntax
This commit is contained in:
parent
6f1908a2ec
commit
df37483e3a
1 changed files with 37 additions and 3 deletions
|
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
(lifetime (identifier) @label)
|
(lifetime (identifier) @label)
|
||||||
|
|
||||||
(self) @variable.builtin
|
(self) @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"break"
|
"break"
|
||||||
|
|
@ -165,8 +165,42 @@
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"*"
|
"*"
|
||||||
"&"
|
|
||||||
"'"
|
"'"
|
||||||
] @operator
|
"->"
|
||||||
|
"=>"
|
||||||
|
"<="
|
||||||
|
"="
|
||||||
|
"=="
|
||||||
|
"!"
|
||||||
|
"!="
|
||||||
|
"%"
|
||||||
|
"%="
|
||||||
|
"&"
|
||||||
|
"&="
|
||||||
|
"&&"
|
||||||
|
"|"
|
||||||
|
"|="
|
||||||
|
"||"
|
||||||
|
"^"
|
||||||
|
"^="
|
||||||
|
"*"
|
||||||
|
"*="
|
||||||
|
"-"
|
||||||
|
"-="
|
||||||
|
"+"
|
||||||
|
"+="
|
||||||
|
"/"
|
||||||
|
"/="
|
||||||
|
">"
|
||||||
|
"<"
|
||||||
|
">="
|
||||||
|
"<="
|
||||||
|
">>"
|
||||||
|
"<<"
|
||||||
|
">>="
|
||||||
|
"@"
|
||||||
|
".."
|
||||||
|
"..="
|
||||||
|
] @operator
|
||||||
|
|
||||||
(closure_parameters "|" @operator "|" @operator)
|
(closure_parameters "|" @operator "|" @operator)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue