Ñò >íLc@sŽdZddklZddklZlZlZddklZddk l Z ddgZ defd„ƒYZ defd „ƒYZ d S( sê pygments.formatters.other ~~~~~~~~~~~~~~~~~~~~~~~~~ Other formatters: NullFormatter, RawTokenFormatter. :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿ(t Formatter(t OptionErrortget_choice_opttb(tToken(tcolorizet NullFormattertRawTokenFormattercBs2eZdZdZddgZdgZd„ZRS(s; Output the text unchanged without any formatting. s Text onlyttexttnulls*.txtcCsR|i}xB|D]:\}}|o|i|i|ƒƒq|i|ƒqWdS(N(tencodingtwritetencode(tselft tokensourcetoutfiletenctttypetvalue((s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pytformats   (t__name__t __module__t__doc__tnametaliasest filenamesR(((s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyRs   cBsAeZdZdZddgZdgZeZd„Zd„Z RS(s} Format tokens as a raw representation for storing token streams. The format is ``tokentyperepr(tokenstring)\n``. The output can later be converted to a token stream with the `RawTokenLexer`, described in the `lexer list `_. Only two options are accepted: `compress` If set to ``'gz'`` or ``'bz2'``, compress the output with the given compression algorithm after encoding (default: ``''``). `error_color` If set to a color name, highlight error tokens using that color. If set but with no value, defaults to ``'red'``. *New in Pygments 0.11.* s Raw tokenstrawttokenss*.rawcKsÞti|||iotdƒ‚nd|_t|dddddgdƒ|_|iddƒ|_|it jo d |_n|idj oAyt |idƒWqÚt j ot d |iƒ‚qÚXndS( Ns6the raw formatter does not support the encoding optiontasciitcompressttnonetgztbz2t error_colortredsInvalid color %r specified( Rt__init__R RRRtgettNoneR"tTrueRtKeyErrort ValueError(R toptions((s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR$>s    c sŸyˆitdƒƒWntj otdƒ‚nX|idjo@ddk}|idddˆƒ‰‡fd†}ˆi}nl|idjoCddk}|idƒ‰‡‡fd †}‡‡fd †}n‡fd †}ˆi}d}d }|i o_x‡|D]P\} } d | | f} | t i jo|t |i | ƒƒq|| ƒqWn,x(|D] \} } |d | | fƒqpW|ƒdS(NRs3The raw tokens formatter needs a binary output fileR iÿÿÿÿtwbi csˆi|iƒƒdS(N(R R (R(R(s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR YsR!cs ˆiˆi|iƒƒƒdS(N(R RR (R(t compressorR(s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR _scs!ˆiˆiƒƒˆiƒdS(N(R tflush((RR,(s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR-ascsˆi|iƒƒdS(N(R R (R(R(s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR esus%s %r (R Rt TypeErrorRtgziptGzipFileR-R!t BZ2CompressorR&R"RtErrorR( R RRR/R R-R!tlasttypetlastvalRRtline((RR,s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyRPs:       ( RRRRRRtFalset unicodeoutputR$R(((s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyR%s   N(Rtpygments.formatterRt pygments.utilRRRtpygments.tokenRtpygments.consoleRt__all__RR(((s@/Users/jano/code/pygments-rb/vendor/pygments/formatters/other.pyt s