diff options
author | blackbird <devnull@localhost> | 2007-01-20 18:34:13 +0100 |
---|---|---|
committer | blackbird <devnull@localhost> | 2007-01-20 18:34:13 +0100 |
commit | ed188fd9f6fc0f5adaec44daca32d6bcfff5ce80 (patch) | |
tree | 95f7fbbb082844682ecf2e74a4b289760aac6891 /pygments/lexers/text.py | |
parent | 48588688b32b374c7edeee945336cc83eaa38a74 (diff) | |
download | pygments-ed188fd9f6fc0f5adaec44daca32d6bcfff5ce80.tar.gz |
[svn] various changes in pygments (does also affect the docs)
Diffstat (limited to 'pygments/lexers/text.py')
-rw-r--r-- | pygments/lexers/text.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index 29f569aa..6336ecbb 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -36,6 +36,7 @@ class IniLexer(RegexLexer): name = 'INI' aliases = ['ini', 'cfg'] filenames = ['*.ini', '*.cfg'] + mimetypes = ['text/x-ini'] tokens = { 'root': [ @@ -64,6 +65,7 @@ class SourcesListLexer(RegexLexer): name= 'Debian Sourcelist' aliases = ['sourceslist', 'sources.list'] filenames = ['sources.list'] + mimetype = ['application/x-debian-sourceslist'] tokens = { 'root': [ @@ -189,6 +191,7 @@ class IrcLogsLexer(RegexLexer): name = 'IRC logs' aliases = ['irc'] + mimetypes = ['text/x-irclog'] flags = re.VERBOSE | re.MULTILINE timestamp = r""" @@ -235,6 +238,7 @@ class BBCodeLexer(RegexLexer): name = 'BBCode' aliases = ['bbcode'] + mimetypes = ['text/x-bbcode'] tokens = { 'root' : [ @@ -370,6 +374,7 @@ class ApacheConfLexer(RegexLexer): name = 'ApacheConf' aliases = ['apacheconf', 'aconf', 'apache'] filenames = ['.htaccess', 'apache.conf', 'apache2.conf'] + mimetypes = ['text/x-apacheconf'] flags = re.MULTILINE | re.IGNORECASE tokens = { @@ -439,9 +444,3 @@ class MoinWikiLexer(RegexLexer): (r'.', Comment.Preproc), # allow loose { or } ], } - - -#class RstLexer(RegexLexer): -# name = 'reStructuredText' -# aliases = ['rst', 'restructuredtext'] -# filenames = ['*.rst'] |