class NameHighlightFilter(Filter):
Highlight a normal Name (and Name.*) token with a different token type.
Example:
filter = NameHighlightFilter( names=['foo', 'bar', 'baz'], tokentype=Name.Function, )
This would highlight the names "foo", "bar" and "baz"
as functions. Name.Function
is the default token type.
Options accepted:
Method | __init__ |
Undocumented |
Method | filter |
Undocumented |
Instance Variable | names |
Undocumented |
Instance Variable | tokentype |
Undocumented |
Inherited from Filter
:
Instance Variable | options |
Undocumented |