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.

Fix Tailwind support for HTML/ERB files (#34743)

Vitaly Slobodin0ffd93774cb9
diff --git a/crates/languages/src/lib.rs b/crates/languages/src/lib.rs
index 431c0510818..a224111002b 100644
--- a/crates/languages/src/lib.rs
+++ b/crates/languages/src/lib.rs
@@ -273,6 +273,7 @@ pub fn init(languages: Arc<LanguageRegistry>, node: NodeRuntime, cx: &mut App) {
"Astro",
"CSS",
"ERB",
+ "HTML/ERB",
"HEEX",
"HTML",
"JavaScript",
diff --git a/crates/languages/src/tailwind.rs b/crates/languages/src/tailwind.rs
index 04f30b62461..cb4e939083e 100644
--- a/crates/languages/src/tailwind.rs
+++ b/crates/languages/src/tailwind.rs
@@ -179,6 +179,7 @@ impl LspAdapter for TailwindLspAdapter {
("Elixir".to_string(), "phoenix-heex".to_string()),
("HEEX".to_string(), "phoenix-heex".to_string()),
("ERB".to_string(), "erb".to_string()),
+ ("HTML/ERB".to_string(), "erb".to_string()),
("PHP".to_string(), "php".to_string()),
("Vue.js".to_string(), "vue".to_string()),
])