diff options
Diffstat (limited to 'pygments/lexers/special.py')
-rw-r--r-- | pygments/lexers/special.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pygments/lexers/special.py b/pygments/lexers/special.py index 5af9320a..8cd43246 100644 --- a/pygments/lexers/special.py +++ b/pygments/lexers/special.py @@ -20,6 +20,9 @@ __all__ = ['TextLexer', 'RawTokenLexer'] class TextLexer(Lexer): + """ + "Null" lexer, doesn't highlight anything. + """ name = 'Text only' aliases = ['text'] filenames = ['*.txt'] @@ -35,13 +38,13 @@ line_re = re.compile('.*?\n') class RawTokenLexer(Lexer): """ - Recreate a token stream formatted with the RawTokenFormatter. + Recreate a token stream formatted with the `RawTokenFormatter`. Additional options accepted: - ``compress`` - If set to "gz" or "bz2", decompress the token stream with - the given compression algorithm (default: ''). + `compress` + If set to ``"gz"`` or ``"bz2"``, decompress the token stream with + the given compression algorithm before lexing (default: ``''``). """ name = 'Raw token data' aliases = ['raw'] |