From 4f0feeb892a85fe2ede375de14ff9f7bd7900e6d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 14 Dec 2007 23:33:31 +0100 Subject: Add .properties as an INI file extension. --- pygments/lexers/_mapping.py | 2 +- pygments/lexers/text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pygments') diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py index 327f27bd..1db8e3a8 100644 --- a/pygments/lexers/_mapping.py +++ b/pygments/lexers/_mapping.py @@ -54,7 +54,7 @@ LEXERS = { 'HtmlLexer': ('pygments.lexers.web', 'HTML', ('html',), ('*.html', '*.htm', '*.xhtml', '*.xslt'), ('text/html', 'application/xhtml+xml')), 'HtmlPhpLexer': ('pygments.lexers.templates', 'HTML+PHP', ('html+php',), ('*.phtml',), ('application/x-php', 'application/x-httpd-php', 'application/x-httpd-php3', 'application/x-httpd-php4', 'application/x-httpd-php5')), 'HtmlSmartyLexer': ('pygments.lexers.templates', 'HTML+Smarty', ('html+smarty',), (), ('text/html+smarty',)), - 'IniLexer': ('pygments.lexers.text', 'INI', ('ini', 'cfg'), ('*.ini', '*.cfg'), ('text/x-ini',)), + 'IniLexer': ('pygments.lexers.text', 'INI', ('ini', 'cfg'), ('*.ini', '*.cfg', '*.properties'), ('text/x-ini',)), 'IoLexer': ('pygments.lexers.agile', 'Io', ('io',), ('*.io',), ('text/x-iosrc',)), 'IrcLogsLexer': ('pygments.lexers.text', 'IRC logs', ('irc',), ('*.weechatlog',), ('text/x-irclog',)), 'JavaLexer': ('pygments.lexers.compiled', 'Java', ('java',), ('*.java',), ('text/x-java',)), diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index c82c0b7c..73e6a28a 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -43,7 +43,7 @@ class IniLexer(RegexLexer): name = 'INI' aliases = ['ini', 'cfg'] - filenames = ['*.ini', '*.cfg'] + filenames = ['*.ini', '*.cfg', '*.properties'] mimetypes = ['text/x-ini'] tokens = { -- cgit v1.2.1