Skip to content

Commit

Permalink
The output lexer is included in Pygments since version 2.10.0, so we …
Browse files Browse the repository at this point in the history
…can remove it from `conf.py`.
  • Loading branch information
doerwalter committed Jan 19, 2022
1 parent 28f89ee commit d0f7795
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,19 +420,6 @@ class HTML5Translator(html5.HTML5Translator):
pass


class OutputLexer(lexer.Lexer):
"""
Simple lexer that highlights everything as output.
"""
name = 'Text output'
aliases = ['output']
filenames = ['*.txt']
mimetypes = ['text/plain']

def get_tokens_unprocessed(self, text):
yield 0, token.Generic.Output, text


class UL4Lexer(lexer.RegexLexer):
"""
Generic lexer for UL4 (the Universal LivingLogic Layout Language).
Expand Down Expand Up @@ -625,7 +612,6 @@ def setup(app):
app.require_sphinx("4.1")
app.connect('autodoc-skip-member', autodoc_skip_member)
app.set_translator("html", HTML5Translator, True)
app.add_lexer("output", OutputLexer)
app.add_lexer("ul4", UL4Lexer)
app.add_lexer("html+ul4", HTMLUL4Lexer)
app.add_lexer("xml+ul4", XMLUL4Lexer)
Expand Down

0 comments on commit d0f7795

Please sign in to comment.