Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
language: Add fallback for enum member completion highlight (#27929)
xdBronchb4653c15b851
diff --git a/crates/language/src/language.rs b/crates/language/src/language.rsindex 864d7a3fd34..7de1b9ba4fe 100644--- a/crates/language/src/language.rs+++ b/crates/language/src/language.rs@@ -1948,6 +1948,9 @@ impl CodeLabel {Kind::ENUM => grammar.highlight_id_for_name("enum").or_else(|| grammar.highlight_id_for_name("type")),+ Kind::ENUM_MEMBER => grammar+ .highlight_id_for_name("variant")+ .or_else(|| grammar.highlight_id_for_name("property")),Kind::FIELD => grammar.highlight_id_for_name("property"),Kind::FUNCTION => grammar.highlight_id_for_name("function"),Kind::INTERFACE => grammar.highlight_id_for_name("type"),