History

tailwind: Add `HTML+ERB` to the list of supported languages (#36797)

Hi! As part of https://github.com/zed-extensions/ruby/issues/162 we would like to rename HTML/ERB to HTML+ERB since it is more syntactically correct to treat such language as ERB on top of HTML rather than HTML or ERB. To keep the user experience intact, we outlined the prerequisites in the linked issue. This is the first PR that adds the HTML+ERB language name to the list of enabled languages for the Emmet extension. We will do the same for the Tailwind configuration in the Zed codebase. Once the new versions of Emmet and Zed are released, we will merge the pull request in the Ruby extension repository and release the updated version. After that, we will remove the old HTML/ERB and YAML/ERB languages. Let me know if that sounds good. Thanks! Release Notes: - N/A

Vitaly Slobodin committed 1 year ago

Commit 45fa6d81 parent 60ad82c2 files · +2 −0Browse files

Unified · Split

2 files
  1. crates/languages/src/lib.rs +1 −0
  2. crates/languages/src/tailwind.rs +1 −0
crates/languages/src/lib.rs+1−0
@@ -296,6 +296,7 @@ pub fn init(languages: Arc<LanguageRegistry>, node: NodeRuntime, cx: &mut App) { · 295 unmodified lines
296 "Astro",296 "Astro",
297 "CSS",297 "CSS",
298 "ERB",298 "ERB",
299 "HTML+ERB",
299 "HTML/ERB",300 "HTML/ERB",
300 "HEEX",301 "HEEX",
301 "HTML",302 "HTML",
crates/languages/src/tailwind.rs+1−0
@@ -184,6 +184,7 @@ impl LspAdapter for TailwindLspAdapter { · 183 unmodified lines
184 (LanguageName::new("Elixir"), "phoenix-heex".to_string()),184 (LanguageName::new("Elixir"), "phoenix-heex".to_string()),
185 (LanguageName::new("HEEX"), "phoenix-heex".to_string()),185 (LanguageName::new("HEEX"), "phoenix-heex".to_string()),
186 (LanguageName::new("ERB"), "erb".to_string()),186 (LanguageName::new("ERB"), "erb".to_string()),
187 (LanguageName::new("HTML+ERB"), "erb".to_string()),
187 (LanguageName::new("HTML/ERB"), "erb".to_string()),188 (LanguageName::new("HTML/ERB"), "erb".to_string()),
188 (LanguageName::new("PHP"), "php".to_string()),189 (LanguageName::new("PHP"), "php".to_string()),
189 (LanguageName::new("Vue.js"), "vue".to_string()),190 (LanguageName::new("Vue.js"), "vue".to_string()),