diff options
Diffstat (limited to 'pygments/lexers/text.py')
-rw-r--r-- | pygments/lexers/text.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index e098c0fa..934e79ae 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -5,16 +5,8 @@ Lexers for non-source code file types. - :copyright: 2006-2009 by Armin Ronacher, Georg Brandl, - Tim Hatch <tim@timhatch.com>, - Ronny Pfannschmidt, - Dennis Kaarsemaker, - Kumar Appaiah <akumar@ee.iitm.ac.in>, - Varun Hiremath <varunhiremath@gmail.com>, - Jeremy Thurgood, - Max Battcher <me@worldmaker.net>, - Kirill Simonov <xi@resolvent.net>. - :license: BSD, see LICENSE for more details. + :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. """ import re @@ -233,6 +225,7 @@ class DiffLexer(RegexLexer): if text[:4] == '--- ': return 0.9 + DPATCH_KEYWORDS = ['hunk', 'addfile', 'adddir', 'rmfile', 'rmdir', 'move', 'replace'] @@ -719,6 +712,7 @@ class RstLexer(RegexLexer): text[p1+1] == text[p2-1]): # ...a sufficiently high header return 0.5 + class VimLexer(RegexLexer): """ Lexer for VimL script files. @@ -828,6 +822,7 @@ class GettextLexer(RegexLexer): ] } + class SquidConfLexer(RegexLexer): """ Lexer for `squid <http://www.squid-cache.org/>`_ configuration files. @@ -1427,6 +1422,7 @@ class YamlLexer(ExtendedRegexLexer): context = YamlLexerContext(text, 0) return super(YamlLexer, self).get_tokens_unprocessed(text, context) + class LighttpdConfLexer(RegexLexer): """ Lexer for `Lighttpd <http://lighttpd.net/>`_ configuration files. @@ -1454,6 +1450,7 @@ class LighttpdConfLexer(RegexLexer): } + class NginxConfLexer(RegexLexer): """ Lexer for `Nginx <http://nginx.net/>`_ configuration files. |