Skip to content

Commit

Permalink
feat: add .j2 extension for Jinja (close #103)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Feb 14, 2025
1 parent 106bd52 commit b72c15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markup_fmt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn detect_language(path: impl AsRef<Path>) -> Option<Language> {
Some("vue") => Some(Language::Vue),
Some("svelte") => Some(Language::Svelte),
Some("astro") => Some(Language::Astro),
Some("jinja" | "jinja2" | "twig" | "njk") => Some(Language::Jinja),
Some("jinja" | "jinja2" | "j2" | "twig" | "njk") => Some(Language::Jinja),
Some("vto") => Some(Language::Vento),
_ => None,
}
Expand Down

0 comments on commit b72c15d

Please sign in to comment.