Files
ServerSync/lib/pygments/formatters/__pycache__/other.cpython-314.pyc

69 lines
6.9 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>iz<00><00><><00>Rt^RIHt^RIHt^RIHt^RIHt.ROt !RR]4t
!R R]4t R
t R t !R R]4tR #)z<>
pygments.formatters.other
~~~~~~~~~~~~~~~~~~~~~~~~~
Other formatters: NullFormatter, RawTokenFormatter.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)<01> Formatter)<01>get_choice_opt)<01>Token)<01>colorize<7A> NullFormatter<65>RawTokenFormatter<65>TestcaseFormatterc<00><a<00>]tRt^toRtRtRR.tR.tRtRt Vt
R#) rz3
Output the text unchanged without any formatting.
z Text only<6C>text<78>nullz*.txtc<08><><00>VPpVF@wrEV'd#VPVPV44K/VPV4KB R#<00>N)<03>encoding<6E>write<74>encode)<06>self<6C> tokensource<63>outfile<6C>enc<6E>ttype<70>values&&& <20>@/tmp/pip-target-qd_sq_1j/lib/python/pygments/formatters/other.py<70>format<61>NullFormatter.formats;<00><00><12>m<EFBFBD>m<EFBFBD><03>'<27>L<EFBFBD>E<EFBFBD><12><17> <0A> <0A>e<EFBFBD>l<EFBFBD>l<EFBFBD>3<EFBFBD>/<2F>0<><17> <0A> <0A>e<EFBFBD>$<24> (<28><00>N) <0B>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>name<6D>aliases<65> filenamesr<00>__static_attributes__<5F>__classdictcell__<5F><01> __classdict__s@rrrs,<00><><00><00><08> <17>D<EFBFBD><15>v<EFBFBD><1E>G<EFBFBD><18> <09>I<EFBFBD>%<25>%rc<00>Fa<00>]tRt^$toRtRtRR.tR.tRtRt Rt
R t Vt R
#) raI
Format tokens as a raw representation for storing token streams.
The format is ``tokentype<TAB>repr(tokenstring)\n``. The output can later
be converted to a token stream with the `RawTokenLexer`, described in the
:doc:`lexer list <lexers>`.
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'``.
.. versionadded:: 0.11
z
Raw tokens<6E>raw<61>tokensz*.rawFc <08>h<00>\P!V3/VBRVn\VR.R OR4VnVP RR4VnVP RJdRVnVP e\VP R4R#R# \d\RTP : R24hi;i)
<EFBFBD>ascii<69>compress<73><00> error_colorNT<4E>redzInvalid color z
specified)r.<00>none<6E>gz<67>bz2)
r<00>__init__rrr-<00>getr/r<00>KeyError<6F>
ValueError<EFBFBD>r<00>optionss&,rr4<00>RawTokenFormatter.__init__>s<><00><00><11><1A><1A>4<EFBFBD>+<2B>7<EFBFBD>+<2B> <20><04> <0A>&<26>w<EFBFBD>
<EFBFBD>'@<40>"<22>F<01><04> <0A>"<22>;<3B>;<3B>}<7D>d<EFBFBD>;<3B><04><18> <0F> <1B> <1B>t<EFBFBD> #<23>$<24>D<EFBFBD> <1C> <0F> <1B> <1B> '<27> R<01><18><14>)<29>)<29>2<EFBFBD>.<2E> (<28><><1C> R<01> <20>><3E>$<24>2B<32>2B<32>1E<31>Z<EFBFBD>!P<>Q<>Q<> R<01>s <00>1B <00> &B1c<08><>aa
<EFBFBD>SPR4TPR8Xd2^RIpTP RR^ S4oSPpSP
pMMTPR8Xd%^RIpTP^ 4o
T
T3RlpT
T3RlpMSPpSPpTP'dQTFIwrxR Yx3,p T\PJdT!\TPT 44KAT!T 4KK MTFwrxT!R Yx3,4K T!4R# \d \R4hi;i)
rz3The raw tokens formatter needs a binary output filer2Nr.<00>wbr3c<00>H<<02>SPSPV44R#r )rr-)r
<00>
compressorrs&<26><>rr<00>'RawTokenFormatter.format.<locals>.write_s<00><><00><17> <0A> <0A>j<EFBFBD>1<>1<>$<24>7<>8rc<00>f<<02>SPSP44SP4R#r )r<00>flush)r>rs<00><>rrA<00>'RawTokenFormatter.format.<locals>.flushbs!<00><><00><17> <0A> <0A>j<EFBFBD>.<2E>.<2E>0<>1<><17> <0A> <0A>rs%r %r
) r<00> TypeErrorr-<00>gzip<69>GzipFile<6C>closer3<00> BZ2CompressorrAr/r<00>Errorr) rrrrDrrAr3rr<00>liner>s &&f @rr<00>RawTokenFormatter.formatOs<00><><00> +<2B> <13>M<EFBFBD>M<EFBFBD>#<23> <1E> <10>=<3D>=<3D>D<EFBFBD> <20> <17><1A>m<EFBFBD>m<EFBFBD>B<EFBFBD><04>a<EFBFBD><17>9<>G<EFBFBD><1B>M<EFBFBD>M<EFBFBD>E<EFBFBD><1B>M<EFBFBD>M<EFBFBD>E<EFBFBD> <11>]<5D>]<5D>e<EFBFBD> #<23> <16><1C>*<2A>*<2A>1<EFBFBD>-<2D>J<EFBFBD> 9<> <20><1C>M<EFBFBD>M<EFBFBD>E<EFBFBD><1B>M<EFBFBD>M<EFBFBD>E<EFBFBD> <0F> <1B> <1B> <1B> +<2B> <0C><05>"<22>e<EFBFBD>^<5E>3<><04><18>E<EFBFBD>K<EFBFBD>K<EFBFBD>'<27><19>(<28>4<EFBFBD>#3<>#3<>T<EFBFBD>:<3A>;<3B><19>$<24>K<EFBFBD> !,<2C>!,<2C> <0C><05><15>k<EFBFBD>U<EFBFBD>N<EFBFBD>2<>3<>!,<2C> <0A><07><>C<19> +<2B><1B>*<2A>+<2B> +<2B> +<2B>s <00>D*<00>*E)r-rr/N) rrrrr r!r"r#<00> unicodeoutputr4rr$r%r&s@rrr$s7<00><><00><00><08>& <18>D<EFBFBD><14>h<EFBFBD><1F>G<EFBFBD><18> <09>I<EFBFBD><19>M<EFBFBD>R<01>"$<10>$rzG def testNeedsName(lexer):
fragment = %r
tokens = [
zD ]
assert list(lexer.get_tokens(fragment)) == tokens
c<00>:a<00>]tRt^<5E>toRtRtR.tRtRtRt Vt
R#)rzI
Format tokens as appropriate for a new testcase.
.. versionadded:: 2.0
<EFBFBD>Testcase<73>testcasec <08><><00>\P!V3/VBVPeVPR8wd \R4hR#R#)N<>utf-8z*Only None and utf-8 are allowed encodings.)rr4rr7r8s&,rr4<00>TestcaseFormatter.__init__<5F>s?<00><00><11><1A><1A>4<EFBFBD>+<2B>7<EFBFBD>+<2B> <0F>=<3D>=<3D> $<24><14><1D><1D>'<27>)A<><1C>I<>J<> J<>*B<01> $rc <08>"<00>Rp.p.pVF1wrgVPV4VPV RV RV: R24K3 \RPV43,pRPV4p \p
VPf VP W<>,V
,4M`VP VP R44VP V P R44VP V
P R44VP4R#)<08> <20>(z, z),
r.NrPz )<08>append<6E>TESTCASE_BEFORE<52>join<69>TESTCASE_AFTERrrrrA) rrr<00> indentation<6F>rawbuf<75>outbufrr<00>before<72>during<6E>afters &&& rr<00>TestcaseFormatter.format<61>s<><00><00><1E> <0B><13><06><13><06>'<27>L<EFBFBD>E<EFBFBD> <12>M<EFBFBD>M<EFBFBD>%<25> <20> <12>M<EFBFBD>M<EFBFBD>[<5B>M<EFBFBD><11>5<EFBFBD>'<27><12>E<EFBFBD>9<EFBFBD>D<EFBFBD>A<> B<>(<28>!<21>B<EFBFBD>G<EFBFBD>G<EFBFBD>F<EFBFBD>O<EFBFBD>#5<>5<><06><13><17><17><16><1F><06><1E><05> <0F>=<3D>=<3D> <20> <13>M<EFBFBD>M<EFBFBD>&<26>/<2F>E<EFBFBD>1<> 2<> <13>M<EFBFBD>M<EFBFBD>&<26>-<2D>-<2D><07>0<> 1<> <13>M<EFBFBD>M<EFBFBD>&<26>-<2D>-<2D><07>0<> 1<> <13>M<EFBFBD>M<EFBFBD>%<25>,<2C>,<2C>w<EFBFBD>/<2F> 0<><0F> <0A> <0A>rrN) rrrrr r!r"r4rr$r%r&s@rrr<00>s(<00><><00><00><08>
<16>D<EFBFBD><19>l<EFBFBD>G<EFBFBD>K<01>
<18>rN)rrr)r <00>pygments.formatterr<00> pygments.utilr<00>pygments.tokenr<00>pygments.consoler<00>__all__rrrVrXrrrr<00><module>resR<00><01><04>)<29>(<28> <20>%<25>
E<EFBFBD><07>%<25>I<EFBFBD>%<25>"O<10> <09>O<10>d<04><0F>
<04><0E> <18> <09>r