Highlight systemd files as ini

This commit is contained in:
Guido Cella 2020-06-20 05:49:06 +02:00 committed by David Peter
parent 4cdac180d8
commit aa8a2b1769

View File

@ -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
}