Skip to content

Commit d489fc3

Browse files
scopalecthomas
authored andcommitted
systemd: add more filename globs
1 parent e424fed commit d489fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lexers/s/systemd.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ var SYSTEMD = internal.Register(MustNewLazyLexer(
99
&Config{
1010
Name: "SYSTEMD",
1111
Aliases: []string{"systemd"},
12-
Filenames: []string{"*.service"},
12+
// Suspects: man systemd.index | grep -E 'systemd\..*configuration'
13+
Filenames: []string{"*.automount", "*.device", "*.dnssd", "*.link", "*.mount", "*.netdev", "*.network", "*.path", "*.scope", "*.service", "*.slice", "*.socket", "*.swap", "*.target", "*.timer"},
1314
MimeTypes: []string{"text/plain"},
1415
},
1516
systemdRules,

0 commit comments

Comments
 (0)