diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 1c817edd..a0df412c 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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 }