Skip to content

Commit

Permalink
Merge pull request #2587 from cyqsimon/os-release
Browse files Browse the repository at this point in the history
Add `os-release` syntax mapping
  • Loading branch information
sharkdp authored Jun 3, 2023
2 parents 5042f96 + 8e866ba commit 70e49bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

## Syntaxes

- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon)

## Themes

## `bat` as a library
Expand Down
6 changes: 6 additions & 0 deletions src/syntax_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 70e49bd

Please sign in to comment.