Merge pull request #2615 from einfachIrgendwer0815/feature_containerfile_mapping

Add `Containerfile` syntax mapping
This commit is contained in:
Keith Hall 2023-07-14 19:56:49 +03:00 committed by GitHub
commit 783d4877e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@
## Syntaxes
- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon)
- Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815)
## Themes

View File

@ -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