+
    4Uiv                     D    R t RR ltR t ! R R4      t ! R R]4      tR# )	z
pygments.filter
~~~~~~~~~~~~~~~

Module that implements the default filter.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
Nc                6   a V3R lpV F  pV! W@4      p K  	  V # )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   H   <"   V P                  SV4       R j  xL
  R #  L5iN)filter)filter_streamlexers   &&1/usr/lib/python3/dist-packages/pygments/filter.py_applyapply_filters.<locals>._apply   s     >>%000s   " " )r   filtersr   r
   r   s   &&f  r	   apply_filtersr      s!    1( M    c           
     n    \        V P                  \        3R\        V R4      RV P                  RV /4      # )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____doc__function)type__name__FunctionFiltergetattrr   )fs   &r	   simplefilterr      s;     

^-ga.199A0  r   c                   0   a  ] tR t^)t o RtR tR tRtV tR# )Filterz`
Default filter. Subclass this class or use the `simplefilter`
decorator to create own filters.
c                    Wn         R # r   optionsselfr   s   &,r	   __init__Filter.__init__/   s    r   c                    \        4       hr   )NotImplementedErrorr    r   r   s   &&&r	   r   Filter.filter2   s    !##r   r   N)	r   r   __qualname____firstlineno__r   r!   r   __static_attributes____classdictcell____classdict__s   @r	   r   r   )   s     
$ $r   r   c                   4   a  ] tR t^6t o RtRtR tR tRtV t	R# )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                    \        V R 4      '       g$   \        V P                  P                  : R24      h\        P
                  ! V 3/ VB  R# )r   z used without bound functionN)hasattr	TypeError	__class__r   r   r!   r   s   &,r	   r!   FunctionFilter.__init__?   s>    tZ((t~~6699UVWW((r   c              #  Z   "   V P                  WV P                  4       R j  xL
  R #  L5ir   )r   r   r%   s   &&&r	   r   FunctionFilter.filterD   s     =====s    +)+r   )
r   r   r'   r(   r   r   r!   r   r)   r*   r+   s   @r	   r   r   6   s       H)
> >r   r   r   )r   r   r   r   r   r   r   r	   <module>r5      s*   
 
$ 
$>V >r   