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.

rust: Explicitly capture lifetime identifier (#42372)

Finn Evers2b369d7532cc
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index c541b512178..ea393525764 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -195,7 +195,9 @@
(unary_expression "!" @operator)
operator: "/" @operator
-(lifetime) @lifetime
+(lifetime
+ "'" @lifetime
+ (identifier) @lifetime)
(parameter (identifier) @variable.parameter)