
    f jy                     N    d Z ddZd Z G d d          Z G d de          ZdS )	z
    pygments.filter
    ~~~~~~~~~~~~~~~

    Module that implements the default filter.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
Nc                 4    fd}|D ]} |||           } | S )z
    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`.
    c              3   D   K   |                      |          E d {V  d S N)filter)filter_streamlexers     cC:\Users\Terasoftware\OneDrive\Desktop\faahhh\fyndo\fyndo\venv\Lib\site-packages\pygments/filter.py_applyzapply_filters.<locals>._apply   s3      >>%00000000000     )r   filtersr   r
   r   s     `  r	   apply_filtersr      sC    1 1 1 1 1 ) )((Mr   c                 h    t          | j        t          ft          | d          | j        | d          S )z
    Decorator that converts a function into a filter::

        @simplefilter
        def lowercase(self, lexer, stream, options):
            for ttype, value in stream:
                yield ttype, value.lower()
    
__module__)r   __doc__function)type__name__FunctionFiltergetattrr   )fs    r	   simplefilterr      s>     
^-a..90 0   r   c                       e Zd ZdZd Zd ZdS )Filterzl
    Default filter. Subclass this class or use the `simplefilter`
    decorator to create own filters.
    c                     || _         d S r   )optionsselfr   s     r	   __init__zFilter.__init__/   s    r   c                     t                      r   )NotImplementedErrorr   r   r   s      r	   r   zFilter.filter2   s    !###r   N)r   r   __qualname__r   r   r   r   r   r	   r   r   )   s<         
  $ $ $ $ $r   r   c                   "    e Zd ZdZdZd Zd ZdS )r   z
    Abstract class used by `simplefilter` to create simple
    function filters on the fly. The `simplefilter` decorator
    automatically creates subclasses of this class for
    functions passed to it.
    Nc                     t          | d          st          | j        j        d          t	          j        | fi | d S )Nr   z used without bound function)hasattr	TypeError	__class__r   r   r   r   s     r	   r   zFunctionFilter.__init__?   sO    tZ(( 	Xt~6VVVWWW(((((((r   c              #   N   K   |                      ||| j                  E d {V  d S r   )r   r   r"   s      r	   r   zFunctionFilter.filterD   s6      =============r   )r   r   r#   r   r   r   r   r   r   r	   r   r   6   sC          H) ) )
> > > > >r   r   r   )r   r   r   r   r   r   r   r	   <module>r*      s    
 
 
 
   
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$> > > > >V > > > > >r   