diff options
author | gbrandl <devnull@localhost> | 2007-05-03 18:23:03 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-05-03 18:23:03 +0200 |
commit | e130dbff2eb591c7cdca4a0bef90b63502cd3d4e (patch) | |
tree | fcb7f3140464f1be96ff5a119c154b3ace677df4 /pygments/token.py | |
parent | 2af8e713b4d89c8961c419db4818f11d43030643 (diff) | |
download | pygments-e130dbff2eb591c7cdca4a0bef90b63502cd3d4e.tar.gz |
[svn] Add whitespace filter. Add a few more filter unit tests.
Diffstat (limited to 'pygments/token.py')
-rw-r--r-- | pygments/token.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/token.py b/pygments/token.py index e4b81e55..66183955 100644 --- a/pygments/token.py +++ b/pygments/token.py @@ -56,6 +56,7 @@ Token = _TokenType() # Special token types Text = Token.Text +Whitespace = Text.Whitespace Error = Token.Error # Text that doesn't belong to this lexer (e.g. HTML in PHP) Other = Token.Other @@ -122,6 +123,7 @@ STANDARD_TYPES = { Token: '', Text: '', + Whitespace: 'w', Error: 'err', Other: 'x', |