mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Merge pull request #2587 from cyqsimon/os-release
Add `os-release` syntax mapping
This commit is contained in:
commit
70e49bd32b
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
## Syntaxes
|
## Syntaxes
|
||||||
|
|
||||||
|
- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon)
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
|
|
||||||
## `bat` as a library
|
## `bat` as a library
|
||||||
|
@ -63,6 +63,12 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
MappingTarget::MapTo("Bourne Again Shell (bash)"),
|
MappingTarget::MapTo("Bourne Again Shell (bash)"),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
mapping
|
||||||
|
.insert(
|
||||||
|
"os-release",
|
||||||
|
MappingTarget::MapTo("Bourne Again Shell (bash)"),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
mapping
|
mapping
|
||||||
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
|
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user