Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

For and await highlighting rust (#42924)

aleanon5225a84affc5
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index ea393525764..1a08126b55d 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -85,7 +85,6 @@
[
"as"
"async"
- "await"
"const"
"default"
"dyn"
@@ -102,6 +101,7 @@
"ref"
"static"
"struct"
+ "for"
"trait"
"type"
"union"
@@ -114,10 +114,10 @@
] @keyword
[
+ "await"
"break"
"continue"
"else"
- "for"
"if"
"in"
"loop"
@@ -127,6 +127,9 @@
"yield"
] @keyword.control
+(for_expression
+ ("for" @keyword.control))
+
[
(string_literal)
(raw_string_literal)