Use this method to apply an iterable of filters to a stream. If lexer is given it's forwarded to the filter, otherwise the filter receives `None`.
yield token for filter_ in filters: stream = _apply(filter_, stream) return stream
import re from pygments.filter import apply_filters, Filter from pygments.filters import get_filter_by_name from pygments.token import Error, Text, Other, _TokenType
stream = streamer() if not unfiltered: stream = apply_filters(stream, self.filters, self) return stream