Skip to content

Commit f1d388d

Browse files
add html-django language id
this seems to be the other way Django templates are specified
1 parent 680df1d commit f1d388d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/djls-server/src/documents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub enum LanguageId {
314314
impl From<&str> for LanguageId {
315315
fn from(language_id: &str) -> Self {
316316
match language_id {
317-
"htmldjango" => Self::HtmlDjango,
317+
"django-html" | "htmldjango" => Self::HtmlDjango,
318318
"python" => Self::Python,
319319
_ => Self::Other,
320320
}

0 commit comments

Comments
 (0)