Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Enable grammar loading when compiling with test feature (#19881)
Bennet Bo Fenner7a6b6435c480
diff --git a/crates/languages/src/lib.rs b/crates/languages/src/lib.rsindex 2fd8ffa633d..455b05b64c2 100644--- a/crates/languages/src/lib.rs+++ b/crates/languages/src/lib.rs@@ -325,7 +325,7 @@ fn load_config(name: &str) -> LanguageConfig {.with_context(|| format!("failed to load config.toml for language {name:?}")).unwrap();- #[cfg(not(feature = "load-grammars"))]+ #[cfg(not(any(feature = "load-grammars", test)))]{config = LanguageConfig {name: config.name,