Merge pull request #2615 from einfachIrgendwer0815/feature_containerfile_mapping

Add `Containerfile` syntax mapping
This commit is contained in:
Keith Hall authored and GitHub committed 2023-07-14 19:56:49 +03:00
commit 783d4877e1
2 files changed
+5

No files matched your search

+1
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
+4
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