Merge pull request #2587 from cyqsimon/os-release

Add `os-release` syntax mapping
This commit is contained in:
David Peter 2023-06-03 23:29:09 +02:00 committed by GitHub
commit 70e49bd32b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,8 @@
## Syntaxes
- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon)
## Themes
## `bat` as a library

View File

@ -63,6 +63,12 @@ impl<'a> SyntaxMapping<'a> {
MappingTarget::MapTo("Bourne Again Shell (bash)"),
)
.unwrap();
mapping
.insert(
"os-release",
MappingTarget::MapTo("Bourne Again Shell (bash)"),
)
.unwrap();
mapping
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
.unwrap();