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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/special.py b/pygments/lexers/special.py
index d3a168e7..e66a01cf 100644
--- a/pygments/lexers/special.py
+++ b/pygments/lexers/special.py
@@ -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 = {}