Highlight operators + improve consistency with Vim syntax

This commit is contained in:
Avi Dessauer 2020-08-18 21:09:47 -04:00 committed by Kiyan Yazdani
parent 6f1908a2ec
commit df37483e3a

View file

@ -97,7 +97,7 @@
(lifetime (identifier) @label)
(self) @variable.builtin
(self) @keyword
[
"break"
@ -165,8 +165,42 @@
[
"as"
"*"
"&"
"'"
] @operator
"->"
"=>"
"<="
"="
"=="
"!"
"!="
"%"
"%="
"&"
"&="
"&&"
"|"
"|="
"||"
"^"
"^="
"*"
"*="
"-"
"-="
"+"
"+="
"/"
"/="
">"
"<"
">="
"<="
">>"
"<<"
">>="
"@"
".."
"..="
] @operator
(closure_parameters "|" @operator "|" @operator)