Skip to content

Commit

Permalink
Add .editorconfig to ini lexer
Browse files Browse the repository at this point in the history
`.editorconfig` files [are ini](https://editorconfig.org/#file-format-details). Also tested on the playground and looks well.
  • Loading branch information
silverwind authored and alecthomas committed Jul 2, 2020
1 parent 391f301 commit 5756434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/i/ini.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Ini = internal.Register(MustNewLexer(
&Config{
Name: "INI",
Aliases: []string{"ini", "cfg", "dosini"},
Filenames: []string{"*.ini", "*.cfg", "*.inf", ".gitconfig"},
Filenames: []string{"*.ini", "*.cfg", "*.inf", ".gitconfig", ".editorconfig"},
MimeTypes: []string{"text/x-ini", "text/inf"},
},
Rules{
Expand Down

0 comments on commit 5756434

Please sign in to comment.