mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-27 16:58:50 +01:00
Highlight systemd files as ini
This commit is contained in:
parent
4cdac180d8
commit
aa8a2b1769
@ -47,6 +47,31 @@ impl<'a> SyntaxMapping<'a> {
|
||||
.insert("rails", MappingTarget::MapToUnknown)
|
||||
.unwrap();
|
||||
|
||||
for glob in [
|
||||
"**/systemd/**/*.conf",
|
||||
"**/systemd/**/*.example",
|
||||
"*.automount",
|
||||
"*.device",
|
||||
"*.dnssd",
|
||||
"*.link",
|
||||
"*.mount",
|
||||
"*.netdev",
|
||||
"*.network",
|
||||
"*.nspawn",
|
||||
"*.path",
|
||||
"*.service",
|
||||
"*.scope",
|
||||
"*.slice",
|
||||
"*.socket",
|
||||
"*.swap",
|
||||
"*.target",
|
||||
"*.timer",
|
||||
].iter() {
|
||||
mapping
|
||||
.insert(glob, MappingTarget::MapTo("INI"))
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
mapping
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user