ó Y-Qc@sKdZdd„Zd„Zdefd„ƒYZdefd„ƒYZdS(sÍ pygments.filter ~~~~~~~~~~~~~~~ Module that implements the default filter. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. cs3‡fd†}x|D]}|||ƒ}qW|S(s¤ 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`. c3s&x|jˆ|ƒD] }|VqWdS(N(tfilter(tfilter_tstreamttoken(tlexer(s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyt_applys((RtfiltersRRR((Rs9/usr/local/lib/python2.7/site-packages/pygments/filter.pyt apply_filters s cCs7t|jtfi|d6t|dƒd6|jd6ƒS(sÕ Decorator that converts a function into a filter:: @simplefilter def lowercase(lexer, stream, options): for ttype, value in stream: yield ttype, value.lower() tfunctiont __module__t__doc__(ttypet__name__tFunctionFiltertgetattrR (tf((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyt simplefilters tFiltercBs eZdZd„Zd„ZRS(sl Default filter. Subclass this class or use the `simplefilter` decorator to create own filters. cKs ||_dS(N(toptions(tselfR((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyt__init__1scCs tƒ‚dS(N(tNotImplementedError(RRR((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyR4s(R R R RR(((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyR+s R cBs&eZdZdZd„Zd„ZRS(sÑ 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. cKs<t|dƒs(td|jjƒ‚ntj||dS(NRs%r used without bound function(thasattrt TypeErrort __class__R RR(RR((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyRAsccs8x1|j|||jƒD]\}}||fVqWdS(N(RR(RRRtttypetvalue((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyRGs%N(R R R tNoneRRR(((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyR 8s N(R RRRtobjectRR (((s9/usr/local/lib/python2.7/site-packages/pygments/filter.pyt s