summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-12-24 16:52:35 +0100
committerGeorg Brandl <georg@python.org>2020-12-24 17:06:55 +0100
commit7f0a0904460b2890ea3e28c92098c1bf6cee8955 (patch)
tree0de3ea0d17b1b3b8e4575d0c3437f64d17eba977 /pygments
parent6b615e68374a1bce04a3f258a2ce10d4a5e319de (diff)
downloadpygments-git-raw-alias.tar.gz
Remove the alias for the RawTokenLexer.raw-alias
RawTokenLexer was broken until 2.7.4, so it seems pretty much unused, and it led to tracebacks when the "raw" alias was used from some markup that allows specifying a language alias. We'll still keep the class for special usage as intended.
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/_mapping.py2
-rw-r--r--pygments/lexers/special.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index 8360ec4e..2e74b0c1 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -376,7 +376,7 @@ LEXERS = {
'RagelLexer': ('pygments.lexers.parsers', 'Ragel', ('ragel',), (), ()),
'RagelObjectiveCLexer': ('pygments.lexers.parsers', 'Ragel in Objective C Host', ('ragel-objc',), ('*.rl',), ()),
'RagelRubyLexer': ('pygments.lexers.parsers', 'Ragel in Ruby Host', ('ragel-ruby', 'ragel-rb'), ('*.rl',), ()),
- 'RawTokenLexer': ('pygments.lexers.special', 'Raw token data', ('raw',), (), ('application/x-pygments-tokens',)),
+ 'RawTokenLexer': ('pygments.lexers.special', 'Raw token data', (), (), ('application/x-pygments-tokens',)),
'RdLexer': ('pygments.lexers.r', 'Rd', ('rd',), ('*.Rd',), ('text/x-r-doc',)),
'ReasonLexer': ('pygments.lexers.ml', 'ReasonML', ('reason', 'reasonml'), ('*.re', '*.rei'), ('text/x-reasonml',)),
'RebolLexer': ('pygments.lexers.rebol', 'REBOL', ('rebol',), ('*.r', '*.r3', '*.reb'), ('text/x-rebol',)),
diff --git a/pygments/lexers/special.py b/pygments/lexers/special.py
index 84a924d9..29ce8fcc 100644
--- a/pygments/lexers/special.py
+++ b/pygments/lexers/special.py
@@ -55,7 +55,7 @@ class RawTokenLexer(Lexer):
the given compression algorithm before lexing (default: ``""``).
"""
name = 'Raw token data'
- aliases = ['raw']
+ aliases = []
filenames = []
mimetypes = ['application/x-pygments-tokens']