From c46c53320b8e221a29ad4178314909f70425d438 Mon Sep 17 00:00:00 2001 From: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:50:37 +0200 Subject: [PATCH 1/2] Add `Containerfile` syntax mapping --- src/syntax_mapping.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 44e1cf45..e18b5642 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -86,6 +86,10 @@ impl<'a> SyntaxMapping<'a> { .insert("rails", MappingTarget::MapToUnknown) .unwrap(); + mapping + .insert("Containerfile", MappingTarget::MapTo("Dockerfile")) + .unwrap(); + // Nginx and Apache syntax files both want to style all ".conf" files // see #1131 and #1137 mapping From 8b187e69975c370aae8a45c9de60ab5884318846 Mon Sep 17 00:00:00 2001 From: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:55:54 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f1d0f8f..375935c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ## Syntaxes - Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon) +- Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815) ## Themes