Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Highlight and auto-indent await expressions in rust
Max Brunsfeld9f74d6e4ac9f
diff --git a/crates/zed/src/languages/rust/highlights.scm b/crates/zed/src/languages/rust/highlights.scmindex 98ea1ee40ea..b52a7a8affd 100644--- a/crates/zed/src/languages/rust/highlights.scm+++ b/crates/zed/src/languages/rust/highlights.scm@@ -52,6 +52,7 @@["as""async"+ "await""break""const""continue"diff --git a/crates/zed/src/languages/rust/indents.scm b/crates/zed/src/languages/rust/indents.scmindex 504c235d102..9ab6b029083 100644--- a/crates/zed/src/languages/rust/indents.scm+++ b/crates/zed/src/languages/rust/indents.scm@@ -5,6 +5,7 @@(assignment_expression)(let_declaration)(let_chain)+ (await_expression)] @indent(_ "[" "]" @end) @indent