mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
|
||||
(self) @variable.builtin
|
||||
(self) @keyword
|
||||
|
||||
[
|
||||
"break"
|
||||
|
|
@ -165,8 +165,42 @@
|
|||
[
|
||||
"as"
|
||||
"*"
|
||||
"&"
|
||||
"'"
|
||||
] @operator
|
||||
"->"
|
||||
"=>"
|
||||
"<="
|
||||
"="
|
||||
"=="
|
||||
"!"
|
||||
"!="
|
||||
"%"
|
||||
"%="
|
||||
"&"
|
||||
"&="
|
||||
"&&"
|
||||
"|"
|
||||
"|="
|
||||
"||"
|
||||
"^"
|
||||
"^="
|
||||
"*"
|
||||
"*="
|
||||
"-"
|
||||
"-="
|
||||
"+"
|
||||
"+="
|
||||
"/"
|
||||
"/="
|
||||
">"
|
||||
"<"
|
||||
">="
|
||||
"<="
|
||||
">>"
|
||||
"<<"
|
||||
">>="
|
||||
"@"
|
||||
".."
|
||||
"..="
|
||||
] @operator
|
||||
|
||||
(closure_parameters "|" @operator "|" @operator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue