lib/rouge/lexers/ini.rb in rouge-4.4.0 vs lib/rouge/lexers/ini.rb in rouge-4.5.0
- old
+ new
@@ -6,12 +6,11 @@
class INI < RegexLexer
title "INI"
desc 'the INI configuration format'
tag 'ini'
- # TODO add more here
- filenames '*.ini', '*.INI', '*.gitconfig'
- mimetypes 'text/x-ini'
+ filenames '*.ini', '*.INI', '*.gitconfig', '*.cfg', '.editorconfig', '*.inf'
+ mimetypes 'text/x-ini', 'text/inf'
identifier = /[\w\-.]+/
state :basic do
rule %r/[;#].*?\n/, Comment