Ñò
f¯Jc @ s· d Z d d k Z d d k Z d d k l Z d d k l Z l Z l Z d d k l
Z
l Z d d g Z d e f d „ ƒ YZ
h Z e i e d ƒ ƒ Z d e f d
„ ƒ YZ d S( sÂ
pygments.lexers.special
~~~~~~~~~~~~~~~~~~~~~~~
Special lexers.
:copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
iÿÿÿÿN( t Lexer( t Tokent Errort Text( t get_choice_optt bt TextLexert
RawTokenLexerc B s8 e Z d Z d Z d g Z d g Z d g Z d „ Z RS( s3
"Null" lexer, doesn't highlight anything.
s Text onlyt texts *.txts
text/plainc c s d t | f Vd S( Ni ( R ( t selfR ( ( s; /usr/lib/python2.6/site-packages/pygments/lexers/special.pyt get_tokens_unprocessed s ( t __name__t
__module__t __doc__t namet aliasest filenamest mimetypesR
( ( ( s; /usr/lib/python2.6/site-packages/pygments/lexers/special.pyR s s .*?
c B sG e Z d Z d Z d g Z g Z d g Z d „ Z d „ Z d „ Z RS( sq
Recreate a token stream formatted with the `RawTokenFormatter`. This
lexer raises exceptions during parsing if the token stream in the
file is malformed.
Additional options accepted:
`compress`
If set to ``"gz"`` or ``"bz2"``, decompress the token stream with
the given compression algorithm before lexing (default: ``""``).
s Raw token datat raws application/x-pygments-tokensc K s8 t | d d d d d g d ƒ | _ t i | | d S( Nt compresst t nonet gzt bz2( R R R t __init__( R t options( ( s; /usr/lib/python2.6/site-packages/pygments/lexers/special.pyR 9 s c c sğ t | t ƒ o | i d ƒ } n | i d j o= d d k } | i d d d t i | ƒ ƒ } | i ƒ } n0 | i d j o d d k } | i
| ƒ } n | i t d ƒ ƒ t d ƒ } x+ | i
| ƒ D] \ } } } | | f VqÎ Wd S( Nt asciiR iÿÿÿÿR t rbi R s
( t
isinstancet unicodet encodeR t gzipt GzipFilet cStringIOt StringIOt readR t
decompresst stripR R
( R R R t gzipfileR t it tt v( ( s; /usr/lib/python2.6/site-packages/pygments/lexers/special.pyt
get_tokens> s ! c c s; d } x.t i | ƒ D]} y( | i ƒ i t d ƒ d ƒ \ } } Wn1 t j
o% | i ƒ i | i ƒ } t } nŸ Xt i
| ƒ } | pq t } | i d ƒ d } xG | D]? } | p | d i ƒ o t d ƒ ‚ n t
| | ƒ } q® W| t |