summaryrefslogtreecommitdiff
path: root/pygments/lexers/special.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/special.py')
-rw-r--r--pygments/lexers/special.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pygments/lexers/special.py b/pygments/lexers/special.py
index d3a168e7..6e076b0c 100644
--- a/pygments/lexers/special.py
+++ b/pygments/lexers/special.py
@@ -5,7 +5,7 @@
Special lexers.
- :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -27,10 +27,13 @@ class TextLexer(Lexer):
aliases = ['text']
filenames = ['*.txt']
mimetypes = ['text/plain']
+ priority = 0.01
def get_tokens_unprocessed(self, text):
yield 0, Text, text
+ def analyse_text(text):
+ return TextLexer.priority
_ttype_cache = {}