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