def add_filter(self, filter_, **options):
if not isinstance(filter_, Filter):<EOL><INDENT>filter_ = get_filter_by_name(filter_, **options)<EOL><DEDENT>self.filters.append(filter_)<EOL>
Add a new stream filter to this lexer.