summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/rust/highlights.scm40
1 files changed, 37 insertions, 3 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm
index 1a3e53e8..4cd508b6 100644
--- a/queries/rust/highlights.scm
+++ b/queries/rust/highlights.scm
@@ -97,7 +97,7 @@
(lifetime (identifier) @label)
-(self) @variable.builtin
+(self) @keyword
[
"break"
@@ -165,8 +165,42 @@
[
"as"
"*"
-"&"
"'"
- ] @operator
+"->"
+"=>"
+"<="
+"="
+"=="
+"!"
+"!="
+"%"
+"%="
+"&"
+"&="
+"&&"
+"|"
+"|="
+"||"
+"^"
+"^="
+"*"
+"*="
+"-"
+"-="
+"+"
+"+="
+"/"
+"/="
+">"
+"<"
+">="
+"<="
+">>"
+"<<"
+">>="
+"@"
+".."
+"..="
+] @operator
(closure_parameters "|" @operator "|" @operator)