diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-20 07:58:40 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-20 08:05:00 +0300 |
commit | bcd5bcc390793791d293d386b2ebefbe683fb4e1 (patch) | |
tree | c93e3b8c847237e7e7626f4a07f1b657bb34f04d /contrib/python/Pygments/py3/pygments/lexers/special.py | |
parent | 1a9f1508fe9c8c5927ffebf33197a6108e70501d (diff) | |
download | ydb-bcd5bcc390793791d293d386b2ebefbe683fb4e1.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/special.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/special.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/special.py b/contrib/python/Pygments/py3/pygments/lexers/special.py index 45565ac0fd..22ad1e6cec 100644 --- a/contrib/python/Pygments/py3/pygments/lexers/special.py +++ b/contrib/python/Pygments/py3/pygments/lexers/special.py @@ -4,7 +4,7 @@ Special lexers. - :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -26,6 +26,9 @@ class TextLexer(Lexer): aliases = ['text'] filenames = ['*.txt'] mimetypes = ['text/plain'] + url = "" + version_added = '' + priority = 0.01 def get_tokens_unprocessed(self, text): @@ -38,11 +41,11 @@ class TextLexer(Lexer): class OutputLexer(Lexer): """ Simple lexer that highlights everything as ``Token.Generic.Output``. - - .. versionadded:: 2.10 """ name = 'Text output' aliases = ['output'] + url = "" + version_added = '2.10' def get_tokens_unprocessed(self, text): yield 0, Generic.Output, text @@ -65,6 +68,8 @@ class RawTokenLexer(Lexer): aliases = [] filenames = [] mimetypes = ['application/x-pygments-tokens'] + url = 'https://pygments.org/docs/formatters/#RawTokenFormatter' + version_added = '' def __init__(self, **options): self.compress = get_choice_opt(options, 'compress', |