Files
ServerSync/lib/rich/__pycache__/syntax.cpython-314.pyc

321 lines
45 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD><69><00><01><>a<00>0t$^RIHt^RIt^RIt^RIt^RIt^RIH t H
t
^RI H t ^RI HtHtHtHtHtHtHtHtHtHtHt^RIHt^RIHtHt^RIHt ^R I!H"t"^R
I#H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+H,t,H-t-^R I.H/t/^R I0H1t1^R I2H3t3H4t4^RI5H6t6^RI7H8t8^RI9H:t:H;t;^RI<H=t=H>t>H?t?H@t@^RIAHBtB^RICHDtD^RIEHFtFHGtG^RIHHtHItI^RIJHKtK]]LR3,tM]P<>R8HtORtP/],]!4b]-]!RR7b]$]!RR7b]$P<>]!RR7b]']!RR7b]'P.]!RR7b]*P<>]!R R7b](P<>]!RR7b](P<>]!R!R7b](P<>]!RRR"7b](P<>]!R!RR"7b](P<>]!RR7b](P<>]!R RR#7b](P<>]!R$R7b](P<>]!R$R7b](P<>]!RR7b](P<>]!R%R7b]+]!R&R7])]!RR7]&P<>]!R'R7]&P<>]!R!R7]&P<>]!RR(7]&P<>]!R RR#7]&P<>]!RR(7]&PJ]!R'R7]%]!R$RR"7/ CtbR)]cR*&/],]!4b]-]!R+R7b]$]!RR7b]$P<>]!R,R7b]']!R%R7b]'P.]!R,R7b]*P<>]!R-R7b](P<>]!R,R7b](P<>]!R.R7b](P<>]!R,RR"7b](P<>]!R.RR"7b](P<>]!R,R7b](P<>]!R-RR#7b](P<>]!R'R7b](P<>]!R'R7b](P<>]!R,R7b](P<>]!R%R7b]+]!R&R7])]!R%R7]&P<>]!R'R7]&P<>]!R.R7]&P<>]!RR(7]&P<>]!R-RR#7]&P<>]!RR(7]&PJ]!R'R7]%]!R$RR"7/ CtdR)]cR/&R0]bR1]d/te^tf!R2R3] 4tg!R4R5]g4th!R6R7]g4ti]]j]j3,tk!R8R9]4tl!R:R;4tm!R<R=]B4tnR>R?lto]pR@8XEd<>^RIqtq^RIt]qP<71>!RARB7ts]sP<73>RCRDRERF7]sP<73>RGRHRIRJRRKRL7]sP<73>RMRNRORJRPRQRL7]sP<73>RRRSRTRJRURV7]sP<73>RWRX]jRYRRZR[7]sP<73>R\R]R^RJRPR_RL7]sP<73>R`RaRJRbRPRcRd7]sP<73>ReRfRgRRhRi7]sP<73>RjRkRlRRmRi7]sP<73>RnRoRRpRqRr7]sP<73>RsRt]j^RuRvRw7]sP<73>Rx]jRRyRzRw7]sP<73>4tv^R{IwH=t=]=!]vP<76>]vP<76>R|7t<]vP<76>R}8Xd<>]P<>P<>4t}]n!]}]vP<76>]vP<76>]vEP]vEP]vEP]vEP]vEP]vEP
0R~7 t<>M|]nEP]vP<76>]vP<76>]vP<76>]vEP]vEP]vEP]vEP]vEP]vEP
0R7 t<>]<EP]<5D>]vEPR<>7R#R#)<29><>)<01> annotationsN)<02>ABC<42>abstractmethod)<01>Path) <0B>Any<6E>Dict<63>Iterable<6C>List<73>
NamedTuple<EFBFBD>Optional<61>Sequence<63>Set<65>Tuple<6C>Type<70>Union)<01>Lexer)<02>get_lexer_by_name<6D>guess_lexer_for_filename)<01>Style)<01>get_style_by_name)
<EFBFBD>Comment<6E>Error<6F>Generic<69>Keyword<72>Name<6D>Number<65>Operator<6F>String<6E>Token<65>
Whitespace)<01> ClassNotFound)<01>Lines)<02>Padding<6E>PaddingDimensions)<01>
loop_first<EFBFBD><01>cell_len)<02>Color<6F> blend_rgb)<04>Console<6C>ConsoleOptions<6E> JustifyMethod<6F> RenderResult)<01> JupyterMixin)<01> Measurement)<02>Segment<6E>Segments)r<00> StyleType)<01>Text.<2E>win32<33>monokai<61>white<74><01>colorT<72><01>dim<69>cyan<61>blue<75>magenta<74>green)r8<00> underline)r8<00>bold<6C>red<65> bright_blue<75>yellow<6F>
bright_red)r@<00>Dict[TokenType, Style]<5D>
ANSI_LIGHT<EFBFBD> bright_black<63> bright_cyan<61>bright_magenta<74> bright_green<65> ANSI_DARK<52>
ansi_light<EFBFBD> ansi_darkc<01>F<00>]tRt^|tRt]RRl4t]RRl4tRtR#)<08> SyntaxThemezBase class for a syntax theme.c<01> <00>V^8<>dQhRRRR/#<00><05><00>
token_type<EFBFBD> TokenType<70>returnr<00>)<01>formats"<22>2/tmp/pip-target-qd_sq_1j/lib/python/rich/syntax.py<70> __annotate__<5F>SyntaxTheme.__annotate__<5F>s<00><00>"<22>"<22>i<EFBFBD>"<22>E<EFBFBD>"<22>c <0A><00>\h)z'Get a style for a given Pygments token.<2E><01>NotImplementedError)<02>selfrSs&&rX<00>get_style_for_token<65>SyntaxTheme.get_style_for_token<00>
<00><00>"<22>!r[c<01><00>V^8<>dQhRR/#<00>rRrUrrV)rWs"rXrYrZ<00>s<00><00>"<22>"<22>e<EFBFBD>"r[c <0A><00>\h)zGet the background color.r]<00>r_s&rX<00>get_background_style<6C> SyntaxTheme.get_background_style<6C>rbr[rVN) <09>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__rr`rg<00>__static_attributes__rVr[rXrOrO|s+<00><00>(<28><13>"<22><14>"<22><14>"<22><14>"r[rOc<01>><00>]tRt^<5E>tRtRRltRRltRRltRtR #)
<EFBFBD>PygmentsSyntaxThemez.Syntax theme that delegates to Pygments theme.c<01> <00>V^8<>dQhRRRR/#)rR<00>themezUnion[str, Type[PygmentsStyle]]rU<00>NonerV)rWs"rXrY<00> PygmentsSyntaxTheme.__annotate__<5F>s<00><00> G<01> G<01>=<3D> G<01>$<24> Gr[c <09><00>/Vn\V\4'd\V4VnMWnVPP Vn\VPR7Vn R# \
d\R4TnLUi;i)<03>default<6C><01>bgcolorN)
<EFBFBD> _style_cache<68>
isinstance<EFBFBD>strr<00>_pygments_style_classr!<00>background_color<6F>_background_colorr<00>_background_style)r_rrs&&rX<00>__init__<5F>PygmentsSyntaxTheme.__init__<5F>sy<00><00>46<34><04><19> <15>e<EFBFBD>S<EFBFBD> !<21> !<21> J<01>-><3E>u<EFBFBD>-E<><04>*<2A>*/<2F> &<26>!%<25>!;<3B>!;<3B>!L<>!L<><04><1E>!&<26>t<EFBFBD>/E<>/E<>!F<><04><1E><> !<21> J<01>-><3E>y<EFBFBD>-I<><04>*<2A> J<01>s<00>A.<00>.B <03> B c<01> <00>V^8<>dQhRRRR/#rQrV)rWs"rXrYrt<00>s<00><00><15><15>i<EFBFBD><15>E<EFBFBD>r[c  <0A><><00>VPV,# \d<>TPPT4pTR,pTR,p\ T'd
RT,MRT'd
RT,M TP
TR,TR,TR,R7pM& \d\P !4pMi;iYPPT&T#i;i) z"Get a style from a Pygments class.r8rx<00>#z#000000r@<00>italicr?)r8rxr@r<>r?)ry<00>KeyErrorr|<00>style_for_tokenrr~<00>null)r_rS<00>pygments_styler8rx<00>styles&& rXr`<00>'PygmentsSyntaxTheme.get_style_for_token<65>s<><00><00> 2<><17>$<24>$<24>Z<EFBFBD>0<> 0<><30><17> 2<> <12>!%<25>!;<3B>!;<3B>!K<>!K<>J<EFBFBD>!W<><0E>'<27>w<EFBFBD>/<2F><05>(<28><19>3<><07><1D>).<2E>#<23><05>+<2B>I<EFBFBD>-4<>C<EFBFBD>'<27>M<EFBFBD>$<24>:P<>:P<>'<27><06>/<2F>)<29>(<28>3<>,<2C>[<5B>9<> <12><05><> <1C> %<25><1D>
<EFBFBD>
<EFBFBD> <0C><05> %<25><>-2<> <1D> <1D>j<EFBFBD> )<29><14> <0C>! 2<>s7<00><00> C<03>B <02>0C<03>-3C<03> C<05>C<03>C<05>C<03>Cc<01><00>V^8<>dQhRR/#rdrV)rWs"rXrYrt<00><00><00><00>&<26>&<26>e<EFBFBD>&r[c <09><00>VP#<00>N<>rrfs&rXrg<00>(PygmentsSyntaxTheme.get_background_style<6C><00><00><00><13>%<25>%<25>%r[)r~rr|ryN<> rirjrkrlrmr<>r`rgrnrVr[rXrprp<00>s<00><00>8<> G<01><15>,&<26>&r[rpc<01>><00>]tRt^<5E>tRtRRltRRltRRltRtR #)
<EFBFBD>ANSISyntaxThemez$Syntax theme to use standard colors.c<01> <00>V^8<>dQhRRRR/#)rR<00> style_maprErUrsrV)rWs"rXrY<00>ANSISyntaxTheme.__annotate__<5F>s<00><00>7<>7<>"8<>7<>T<EFBFBD>7r[c <09><><00>Wn\P!4Vn\P!4Vn/VnR#r<>)r<>rr<><00>_missing_stylerry)r_r<>s&&rXr<><00>ANSISyntaxTheme.__init__<5F>s+<00><00>"<22><0E>#<23>j<EFBFBD>j<EFBFBD>l<EFBFBD><04><1B>!&<26><1A><1A><1C><04><1E>46<34><04>r[c<01> <00>V^8<>dQhRRRR/#rQrV)rWs"rXrYr<><00>s<00><00><19><19>i<EFBFBD><19>E<EFBFBD>r[c <0A><00>VPV,# \d_TPPp\ T4pTP
pT'dT!T4pTeTpMTRRpKY@PT&Tu#i;i)zLook up style in the style map.N<><4E><EFBFBD><EFBFBD><EFBFBD>)ryr<>r<><00>get<65>tupler<65>)r_rS<00> get_style<6C>tokenr<6E><00>_styles&& rXr`<00>#ANSISyntaxTheme.get_style_for_token<65>s<><00><00> <19><17>$<24>$<24>Z<EFBFBD>0<> 0<><30><17> <19><1D><0E><0E>*<2A>*<2A>I<EFBFBD><19>*<2A>%<25>E<EFBFBD><18>'<27>'<27>E<EFBFBD><17>"<22>5<EFBFBD>)<29><06><19>%<25>"<22>E<EFBFBD><19><1D>c<EFBFBD>r<EFBFBD>
<EFBFBD><05>,1<> <1D> <1D>j<EFBFBD> )<29><18>L<EFBFBD> <19>s<00><00>?A><03>&A><03>=A>c<01><00>V^8<>dQhRR/#rdrV)rWs"rXrYr<><00>r<>r[c <09><00>VP#r<>r<>rfs&rXrg<00>$ANSISyntaxTheme.get_background_style<6C>r<>r[)rr<>ryr<>Nr<4E>rVr[rXr<>r<><00>s<00><00>.<2E>7<> <19>(&<26>&r[r<>c<01>H<00>]tRt^<5E>t$RtR]R&R]R&R]R&RtR]R &R
tR #) <0C>_SyntaxHighlightRangez<65>
A range to highlight in a Syntax object.
`start` and `end` are 2-integers tuples, where the first integer is the line number
(starting from 1) and the second integer is the column index (starting from 0).
r2r<><00>SyntaxPosition<6F>start<72>endF<64>bool<6F> style_beforerVN)rirjrkrlrm<00>__annotations__r<5F>rnrVr[rXr<>r<><00>s%<00><00><08> <15><14> <19><19> <17><17><1E>L<EFBFBD>$<24>r[r<>c<01>2<00>]tRt^<5E>tRtRRltRRltRtR#)<08>PaddingPropertyz"Descriptor to get and set padding.c<01>$<00>V^8<>dQhRRRRRR/#)rR<00>obj<62>Syntax<61>objtypez Type[Syntax]rUzTuple[int, int, int, int]rV)rWs"rXrY<00>PaddingProperty.__annotate__<5F>s"<00><00><1C><1C>6<EFBFBD><1C>L<EFBFBD><1C>=V<>r[c <0A><00>VP#)zSpace around the Syntax.)<01>_padding)r_r<>r<>s&&&rX<00>__get__<5F>PaddingProperty.__get__<5F>s <00><00><12>|<7C>|<7C>r[c<01>$<00>V^8<>dQhRRRRRR/#)rRr<>r<><00>paddingr$rUrsrV)rWs"rXrYr<><00>s"<00><00>/<2F>/<2F>6<EFBFBD>/<2F>,=<3D>/<2F>$<24>/r[c <09><<00>\P!V4VnR#r<>)r#<00>unpackr<6B>)r_r<>r<>s&&&rX<00>__set__<5F>PaddingProperty.__set__<5F>s<00><00><1E>~<7E>~<7E>g<EFBFBD>.<2E><03> r[rVN)rirjrkrlrmr<>r<>rnrVr[rXr<>r<><00>s<00><00>,<2C><1C>/<2F>/r[r<>c<01><><00>]tRt^<5E>t$RtR]R&R]R&]RRl4tR]R R
R R
R ^R RRRRRR^RR
RRRR
R^/ RRllt ]
!4t ]RR]R
R
R^RR^R
RR
^3RRll4t ]R:RRll4t RRltRR lt]R!R"l4t]R#R$l4tR:R%R&lltR;R'R(lltR<R)R*llt]R+R,l4tR-R.ltR/R0ltR1R2ltR3R4ltR5R6ltR7R8ltR9tR#)=r<>a`Construct a Syntax object to render syntax highlighted code.
Args:
code (str): Code to highlight.
lexer (Lexer | str): Lexer to use (see https://pygments.org/docs/lexers/)
theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "monokai".
dedent (bool, optional): Enable stripping of initial whitespace. Defaults to False.
line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
start_line (int, optional): Starting number for line numbers. Defaults to 1.
line_range (Tuple[int | None, int | None], optional): If given should be a tuple of the start and end line to render.
A value of None in the tuple indicates the range is open in that direction.
highlight_lines (Set[int]): A set of line numbers to highlight.
code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
tab_size (int, optional): Size of tabs. Defaults to 4.
word_wrap (bool, optional): Enable word wrapping.
background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
indent_guides (bool, optional): Show indent guides. Defaults to False.
padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
zType[PygmentsStyle]r|rO<00>_themec<01> <00>V^8<>dQhRRRR/#)rR<00>name<6D>Union[str, SyntaxTheme]rUrOrV)rWs"rXrY<00>Syntax.__annotate__ s<00><00> <15> <15>4<> <15><1B> r[c <0A><><00>\V\4'dV#V\9d\\V,4pV#\ V4pV#)zGet a syntax theme instance.)rzrO<00>RICH_SYNTAX_THEMESr<53>rp)<03>clsr<73>rrs&& rX<00> get_theme<6D>Syntax.get_themesG<00><00> <16>d<EFBFBD>K<EFBFBD> (<28> (<28><17>K<EFBFBD> <0F>%<25> %<25>#<23>$6<>t<EFBFBD>$<<3C>=<3D>E<EFBFBD><15> <0C>(<28><04>-<2D>E<EFBFBD><14> r[rr<00>dedentF<74> line_numbers<72>
start_line<EFBFBD>
line_rangeN<EFBFBD>highlight_lines<65>
code_width<EFBFBD>tab_size<7A> word_wrapr}<00> indent_guidesr<73>c<01>T<00>V^8<>dQhRRRRRRRRR RR
R R R RRRRRR RRRRRRRRRR/#)rR<00>coder{<00>lexerzUnion[Lexer, str]rrr<>r<>r<>r<>r<><00>intr<74><00>-Optional[Tuple[Optional[int], Optional[int]]]r<><00>Optional[Set[int]]r<><00> Optional[int]r<>r<>r}<00> Optional[str]r<>r<>r$rUrsrV)rWs"rXrYr<>s<><00><00>$@<01>$@<01><11>$@<01>!<21>$@<01>
'<27> $@<01> <15> $@<01><1B>$@<01><18>$@<01>B<01>$@<01>,<2C>$@<01>"<22>$@<01><16>$@<01><18>$@<01>(<28>$@<01><1C>$@<01> #<23>!$@<01>"
<0E>#$@r[c  <09>r<00>WnW nW@nWPnW`nWpnT;'g \ 4VnW<>nW<>n W<>n
W<>n V 'd \V R7M \4Vn W<>n\P !V4VnVP%V4Vn.VnR#)rwN)r<><00>_lexerr<72>r<>r<>r<><00>setr<74>r<>r<>r<>r}r<00>background_styler<65>r#r<>r<>r<>r<><00>_stylized_ranges)r_r<>r<>rrr<>r<>r<>r<>r<>r<>r<>r<>r}r<>r<>s&&&$$$$$$$$$$$$rXr<><00>Syntax.__init__s<><00><00>$<19> <09><1B> <0B><1C> <0B>(<28><19>$<24><0F>$<24><0F>.<2E>7<>7<>#<23>%<25><04><1C>$<24><0F> <20> <0A>"<22><0E> 0<><1D>/?<3F>E<EFBFBD>*<2A> +<2B>U<EFBFBD>W<EFBFBD> <0A><1D>+<2B><1A><1F><0E><0E>w<EFBFBD>/<2F><04> <0A><1A>n<EFBFBD>n<EFBFBD>U<EFBFBD>+<2B><04> <0B>=?<3F><04>r[zutf-8c <01>X<00>V^8<>dQhRRRRRRRRRR R
R R R R RRRRRRRRR RRRR RRRR/#)rR<00>pathr{<00>encodingr<67>zOptional[Union[Lexer, str]]rrr<>r<>r<>r<>r<>zOptional[Tuple[int, int]]r<>r<>r<>r<>r<>r<>r<>r<>r}r<>r<>r<>r$rUz'Syntax'rV)rWs"rXrYr<>=s<><00><00><
<EFBFBD><
<EFBFBD><11><
<EFBFBD><16><
<EFBFBD>+<2B> <
<EFBFBD>
'<27> <
<EFBFBD> <15> <
<EFBFBD><1B><
<EFBFBD>.<2E><
<EFBFBD><18><
<EFBFBD>,<2C><
<EFBFBD>"<22><
<EFBFBD><16><
<EFBFBD><18><
<EFBFBD>(<28><
<EFBFBD><1C><
<EFBFBD> #<23>!<
<EFBFBD>"
<12>#<
r[c <0A><><00>\V4PVR7pV'gVPVVR7pV!VVVVVVVV V
V V V VVR7#)a<>Construct a Syntax object from a file.
Args:
path (str): Path to file to highlight.
encoding (str): Encoding of file.
lexer (str | Lexer, optional): Lexer to use. If None, lexer will be auto-detected from path/file content.
theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "emacs".
dedent (bool, optional): Enable stripping of initial whitespace. Defaults to True.
line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
start_line (int, optional): Starting number for line numbers. Defaults to 1.
line_range (Tuple[int, int], optional): If given should be a tuple of the start and end line to render.
highlight_lines (Set[int]): A set of line numbers to highlight.
code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
tab_size (int, optional): Size of tabs. Defaults to 4.
word_wrap (bool, optional): Enable word wrapping of code.
background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
indent_guides (bool, optional): Show indent guides. Defaults to False.
padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
Returns:
[Syntax]: A Syntax object that may be printed to the console
)r<>)r<>) rrr<>r<>r<>r<>r<>r<>r<>r<>r}r<>r<>)r<00> read_text<78> guess_lexer)r<>r<>r<>r<>rrr<>r<>r<>r<>r<>r<>r<>r<>r}r<>r<>r<>s&&&&&&&&&&&&&&&& rX<00> from_path<74>Syntax.from_path<sh<00><00>R<14>D<EFBFBD>z<EFBFBD>#<23>#<23>X<EFBFBD>#<23>6<><04><14><17>O<EFBFBD>O<EFBFBD>D<EFBFBD>t<EFBFBD>O<EFBFBD>4<>E<EFBFBD><12> <10> <11><17><19>%<25>!<21>!<21>+<2B>!<21><1D><1F>-<2D>'<27><1B>
<EFBFBD>
r[c<01>$<00>V^8<>dQhRRRRRR/#)rRr<>r{r<>r<>rUrV)rWs"rXrYr<>|s!<00><00>'<1A>'<1A>s<EFBFBD>'<1A>-<2D>'<1A>3<EFBFBD>'r[c <0A><><00>RpRpV'd \W4pV'gU\PP V4wrVV'd+VP R4P 4p\V4pV'd4VP'dVP^,pV#VPpV# \dL<>i;i \dL[i;i)aMGuess the alias of the Pygments lexer to use based on a path and an optional string of code.
If code is supplied, it will use a combination of the code and the filename to determine the
best lexer to use. For example, if the file is ``index.html`` and the file contains Django
templating syntax, then "html+django" will be returned. If the file is ``index.html``, and no
templating language is used, the "html" lexer will be used. If no string of code
is supplied, the lexer will be chosen based on the file extension..
Args:
path (AnyStr): The path to the file containing the code you wish to know the lexer for.
code (str, optional): Optional string of code that will be used as a fallback if no lexer
is found for the supplied path.
Returns:
str: The name of the Pygments lexer that best matches the supplied path/code.
Nrv<00>.)
rr!<00>osr<73><00>splitext<78>lstrip<69>lowerr<00>aliasesr<73>)r<>r<>r<>r<><00>
lexer_name<EFBFBD>_<>ext<78> extensions&&& rXr<><00>Syntax.guess_lexer{s<><00><00>""&<26><05><1E>
<EFBFBD> <0F> <15>0<><14><<3C><05><15> <15><1B><17><17>)<29>)<29>$<24>/<2F><06><01><16> #<23>
<EFBFBD>
<EFBFBD>3<EFBFBD><0F> 5<> 5<> 7<>I<EFBFBD>-<2D>i<EFBFBD>8<>E<EFBFBD> <11><14>}<7D>}<7D>}<7D>"<22>]<5D>]<5D>1<EFBFBD>-<2D>
<EFBFBD><1A><19>#<23>Z<EFBFBD>Z<EFBFBD>
<EFBFBD><19><19><>%!<21> <15><14> <15><>!<21> <15><14> <15>s#<00> B2<00>AC<00>2 C<03>?C<03> C<03>Cc<01><00>V^8<>dQhRR/#rdrV)rWs"rXrYr<><00>s<00><00><1D><1D><15>r[c <0A>\<00>VPP4VP,pV#)zGet the base style.)r<>rgr<>)r_<00> default_styles& rX<00>_get_base_style<6C>Syntax._get_base_style<6C>s%<00><00><1C> <0B> <0B>8<>8<>:<3A>T<EFBFBD>=R<>=R<>R<> <0A><1C>r[c<01> <00>V^8<>dQhRRRR/#)rRrSrTrUzOptional[Color]rV)rWs"rXrYr<><00>s<00><00>
<1B>
<1B>9<EFBFBD>
<1B><1F>
r[c <0A>P<00>VPPV4pVP#)z<>Get a color (if any) for the given token.
Args:
token_type (TokenType): A token type tuple from Pygments.
Returns:
Optional[Color]: Color from theme, or None for no color.
)r<>r`r8)r_rSr<>s&& rX<00>_get_token_color<6F>Syntax._get_token_color<6F>s"<00><00><15> <0B> <0B>/<2F>/<2F>
<EFBFBD>;<3B><05><14>{<7B>{<7B>r[c<01><00>V^8<>dQhRR/#)rRrUzOptional[Lexer]rV)rWs"rXrYr<><00>s<00><00><18><18><EFBFBD>r[c <0A><><00>\VP\4'd VP#\VPRRVPR7# \
dR#i;i)z<>The lexer for this syntax, or None if no lexer was found.
Tries to find the lexer by name if a string was passed to the constructor.
FT<EFBFBD><03>stripnl<6E>ensurenl<6E>tabsizeN)rzr<>rrr<>r!rfs&rXr<><00> Syntax.lexer<65>sY<00><00> <16>d<EFBFBD>k<EFBFBD>k<EFBFBD>5<EFBFBD> )<29> )<29><17>;<3B>;<3B> <1E> <18>$<24><14> <0B> <0B><1D><1D><1C> <0A> <0A> <0E> <0E><> <1D> <18><17> <18>s<00>"A<00> A <03>A c<01><00>V^8<>dQhRR/#)rRrUrrV)rWs"rXrYr<><00>s<00><00>
<EFBFBD>
<EFBFBD>u<EFBFBD>
r[c <0A>4<00>\RRRVPR7#)z;A Pygments Lexer to use if one is not specified or invalid.<2E>textFTr)rr<>rfs&rX<00> default_lexer<65>Syntax.default_lexer<65>s!<00><00>!<21> <12><19><19><18>M<EFBFBD>M<EFBFBD> 
<EFBFBD>
r[c<01>$<00>V^8<>dQhRRRRRR/#)rRr<>r{r<>r<>rUr3rV)rWs"rXrYr<><00>s.<00><00>S<14>S<14><11>S<14>B<01>S<14>
<0E> Sr[c <0A><>aaaa a
a <0B>VP4pVP'dRMRp\VVVPVP'*R7pVP
P oVP;'g VPoSfVPS4M<>V'd3Vwo
o RVV3Rllo RVV V
V 3RllpVPV!44M*VPV3RlSPS444VPeVPR VP 24VP'dVPV4V#)
z<EFBFBD>Highlight code and return a Text instance.
Args:
code (str): Code to highlight.
line_range(Tuple[int, int], optional): Optional line range to highlight.
Returns:
Text: A text instance containing highlighted syntax.
rv<00>left)<04>justifyr<79>r<><00>no_wrapc<01><00>V^8<>dQhRR/#)rRrUzIterable[Tuple[Any, str]]rV)rWs"rXrY<00>&Syntax.highlight.<locals>.__annotate__<5F>s<00><00>D<01>D<01>'@<40>Dr[c3<05><><"<00>S'gQhSPS4F/wrV'gKVPR4wr#pWV,3x<00>K, R#5i)zSplit tokens to one per line.<2E>
N)<02>
get_tokens<EFBFBD> partition)rSr<><00>
line_token<EFBFBD>new_liner<65>r<>s <20><>rX<00> line_tokenize<7A>'Syntax.highlight.<locals>.line_tokenize<7A>sL<00><><00><00> <20>L<EFBFBD>5<EFBFBD>-2<>-=<3D>-=<3D>d<EFBFBD>-C<>)<29>
<EFBFBD>#<23>e<EFBFBD>:?<3F>/<2F>/<2F>$<24>:O<>7<>J<EFBFBD>%<25>",<2C>8<EFBFBD>.C<>"C<>C<>.D<01>s
<00>&A<01>&Ac<01><00>V^8<>dQhRR/#)rRrUz%Iterable[Tuple[str, Optional[Style]]]rV)rWs"rXrYrs<00><00>&<26>&<26>)N<>&r[c3<05><><"<00>\S !44p^pS'd
S^,
M^pW8d9\V4wr4TR3x<00>TPR4'gK3T^, pK>VFGwrTVS!V43x<00>VPR4'gK*V^, pS'gK=VS8<>gKFR# R# \dK]i;i5i)zConvert tokens to spans.Nr)<04>iter<65>next<78> StopIteration<6F>endswith)
<EFBFBD>tokens<6E>line_no<6E> _line_start<72> _token_typer<65>rS<00>_get_theme_style<6C>line_end<6E>
line_startrs
<20><><EFBFBD><EFBFBD>rX<00>tokens_to_spans<6E>)Syntax.highlight.<locals>.tokens_to_spanss<><00><><00><00>!<21>-<2D>/<2F>2<>F<EFBFBD><1F>G<EFBFBD>4><3E>*<2A>q<EFBFBD>.<2E>A<EFBFBD>K<EFBFBD>"<22>/<2F>"<22>15<31>f<EFBFBD><1C>.<2E>K<EFBFBD> %<25>d<EFBFBD>m<EFBFBD>+<2B> <20>><3E>><3E>$<24>/<2F>/<2F>#<23>q<EFBFBD>L<EFBFBD>G<EFBFBD>-3<>)<29>
<EFBFBD>$<24>&6<>z<EFBFBD>&B<>C<>C<> <20>><3E>><3E>$<24>/<2F>/<2F>#<23>q<EFBFBD>L<EFBFBD>G<EFBFBD>'<27>x<EFBFBD>G<EFBFBD>x<EFBFBD>,?<3F> %<25> .4<EFBFBD><EFBFBD> -<2D>"<22>!<21>"<22>s?<00>,C<01> B6<00>C<01>2C<01>C<01>&C<01>/C<01>6 C<03>C<01>C<03>Cc3<01><<"<00>TFwrVS!V43x<00>K R#5ir<>rV)<04>.0rSr<>r&s& <20>rX<00> <genexpr><3E>#Syntax.highlight.<locals>.<genexpr>s&<00><><00><00>#<12>-C<>)<29>
<EFBFBD><1B>,<2C>Z<EFBFBD>8<>9<>-C<>s<00>zon )r<><00>transparent_backgroundr3r<>r<>r<>r`r<>r <00>append<6E> append_tokensrr}<00>stylizer<65><00>_apply_stylized_ranges) r_r<>r<><00>
base_stylerr
r)r&r<>r'r(rs &f& @@@@@rX<00> highlight<68>Syntax.highlight<68>s,<00><><00><1A>)<29>)<29>+<2B>
<EFBFBD>#<23>:<3A>:<3A>:<3A>I<EFBFBD><06> <10><14><1B><1C><19>]<5D>]<5D><1C><0E><0E>&<26> 
<EFBFBD><04>  <20>;<3B>;<3B>:<3A>:<3A><18><14>
<EFBFBD>
<EFBFBD>0<>0<>d<EFBFBD>0<>0<><05> <10>=<3D> <10>K<EFBFBD>K<EFBFBD><04> <1D><19>(2<>$<24>
<EFBFBD>H<EFBFBD>D<01>D<01>&<26>&<26>.<15>"<22>"<22>?<3F>#4<>5<><15>"<22>"<22>#<12>-2<>-=<3D>-=<3D>d<EFBFBD>-C<>#<12><12><14>$<24>$<24>0<><14> <0C> <0C>s<EFBFBD>4<EFBFBD>#8<>#8<>"9<>:<3A>;<3B> <0F> <20> <20> <20> <10> '<27> '<27><04> -<2D><13> r[c
<01>,<00>V^8<>dQhRRRRRRRRRR /#)
rRr<>r2r<>r<>r<>r<>r<>rUrsrV)rWs"rXrYr<>(s<<00><00>
<EFBFBD>
<EFBFBD><18>
<EFBFBD><1E>
<EFBFBD><1C> 
<EFBFBD>
<1B> 
<EFBFBD>
<0E> 
r[c <0A>P<00>VPP\WW444R#)a<>
Adds a custom style on a part of the code, that will be applied to the syntax display when it's rendered.
Line numbers are 1-based, while column indexes are 0-based.
Args:
style (StyleType): The style to apply.
start (Tuple[int, int]): The start of the range, in the form `[line number, column index]`.
end (Tuple[int, int]): The end of the range, in the form `[line number, column index]`.
style_before (bool): Apply the style before any existing styles.
N)r<>r0r<>)r_r<>r<>r<>r<>s&&&&&rX<00> stylize_range<67>Syntax.stylize_range(s"<00><00>" <0A><1D><1D>$<24>$<24> !<21>%<25><03> B<>
r[c<01> <00>V^8<>dQhRRRR/#)rR<00>blend<6E>floatrUr(rV)rWs"rXrYr<>=s<00><00> -<2D> -<2D>U<EFBFBD> -<2D>U<EFBFBD> -r[c <09><><00>VPP4VP,pVPpVeVP'd\
P !4#VP\P4pVeVP'd T;'g\
P !4#\VP4VP4VR7p\
P!V4#)N)<01>
cross_fade) r<>rgr<>rx<00>is_system_definedr(rvr<>rr3r)<00> get_truecolor<6F> from_triplet)r_r<r<>r}<00>foreground_color<6F> new_colors&& rX<00>_get_line_numbers_color<6F>Syntax._get_line_numbers_color=s<><00><00><1F>;<3B>;<3B>;<3B>;<3B>=<3D><04>@U<>@U<>U<><18>+<2B>3<>3<><18> <1B> #<23>'7<>'I<>'I<>'I<><18>=<3D>=<3D>?<3F> "<22><1F>0<>0<><15><1A><1A><<3C><18> <1B> #<23>'7<>'I<>'I<>'I<>#<23>6<>6<>u<EFBFBD>}<7D>}<7D><EFBFBD> 6<><1D> <1C> *<2A> *<2A> ,<2C> <1C> *<2A> *<2A> ,<2C><1C>
<EFBFBD> <09>
<15>!<21>!<21>)<29>,<2C>,r[c<01><00>V^8<>dQhRR/#)rRrUr<>rV)rWs"rXrYr<>Ms<00><00><1C><1C>s<EFBFBD>r[c <0A><><00>^pVP'dJ\\VPVPP R4,44\ ,pV#)z?Get the number of characters used to render the numbers column.r)r<><00>lenr{r<>r<><00>count<6E>NUMBERS_COLUMN_DEFAULT_PADDING)r_<00> column_widths& rX<00>_numbers_column_width<74>Syntax._numbers_column_widthLsM<00><00><19> <0C> <0F> <1C> <1C> <1C><13>C<EFBFBD><04><0F><0F>$<24>)<29>)<29>/<2F>/<2F>$<24>*?<3F>?<3F>@<40>A<>0<>1<> <19><1C>r[c<01> <00>V^8<>dQhRRRR/#)rR<00>consoler*rUzTuple[Style, Style, Style]rV)rWs"rXrYr<>Ws<00><00>F<01>F<01>'<27>F<01>6P<36>Fr[c
 <0A><><00>VP4pVP'd6\P!4\RR7\P!43#VPR9d<>\P
!VVP P\P4\VP4R7VP4p\P
!VVP P\P4\RVPR4R7VP4pM&V\RR7,pV\RR7,pW#V3#)z>Get background, number, and highlight styles for line numbers.Tr9r7g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?)r@r8F)<02>256<35> truecolor) r<>r/rr<><00> color_system<65>chainr<6E>r`rr3rEr<>)r_rPr<><00> number_style<6C>highlight_number_styles&& rX<00>_get_number_styles<65>Syntax._get_number_stylesWs<><00><00><1F>/<2F>/<2F>1<><18> <1B> 2<> 2<> 2<><18>:<3A>:<3A><<3C><15>4<EFBFBD><1F>%<25>*<2A>*<2A>,<2C>><3E> ><3E> <12> <1F> <1F>#7<> 7<> <20>;<3B>;<3B> <20><14> <0B> <0B>/<2F>/<2F><05>
<EFBFBD>
<EFBFBD>;<3B><15>D<EFBFBD>8<>8<>:<3A>;<3B><14>%<25>%<25> <0E>L<EFBFBD> &+<2B>[<5B>[<5B> <20><14> <0B> <0B>/<2F>/<2F><05>
<EFBFBD>
<EFBFBD>;<3B><15>4<EFBFBD>t<EFBFBD>'C<>'C<>C<EFBFBD>'H<>I<><14>%<25>%<25> &<0E> "<22>,<2C>e<EFBFBD><04>o<EFBFBD>=<3D>L<EFBFBD>%5<><05>%<25>8H<38>%H<> "<22><1F>/E<>E<>Er[c<01>$<00>V^8<>dQhRRRRRR/#)rRrPz 'Console'<27>optionsz'ConsoleOptions'rUz 'Measurement'rV)rWs"rXrYr<>ns$<00><00>><3E>><3E> <20>><3E>+;<3B>><3E> <16>>r[c <09><><00>VPwr4r5WT,pVPeBVPVP,V,^,p\VPV4#VPP 4pVPV,V'd\ RV44M^,pVP'd
V^, p\VPV4#)Nc3<01>8"<00>TFp\V4x<00>K R#5ir<>r&)r,<00>lines& rXr-<00>*Syntax.__rich_measure__.<locals>.<genexpr>zs<00><00><00>4<>e<EFBFBD>d<EFBFBD>8<EFBFBD>D<EFBFBD>><3E>><3E>e<EFBFBD>s<00>)r<>r<>rMr/r<><00>
splitlines<EFBFBD>maxr<78>) r_rPr[r<><00>rightrr<><00>width<74>liness &&& rX<00>__rich_measure__<5F>Syntax.__rich_measure__ns<><00><00>!<21>L<EFBFBD>L<EFBFBD><19><01>!<21><16>,<2C><07> <0F>?<3F>?<3F> &<26><18>O<EFBFBD>O<EFBFBD>d<EFBFBD>&@<40>&@<40>@<40>7<EFBFBD>J<>Q<EFBFBD>N<>E<EFBFBD><1E>t<EFBFBD>9<>9<>5<EFBFBD>A<> A<><14> <09> <09>$<24>$<24>&<26><05> <10> &<26> &<26><15> <16>8=<3D>s<EFBFBD>4<>e<EFBFBD>4<>4<>1<EFBFBD> F<01> <0E>
<10> <1C> <1C> <1C> <11>Q<EFBFBD>J<EFBFBD>E<EFBFBD><1A>4<EFBFBD>5<>5<>u<EFBFBD>=<3D>=r[c<01>$<00>V^8<>dQhRRRRRR/#)rRrPr*r[r+rUr-rV)rWs"rXrYr<><00>s$<00><00><1B><1B><1E><1B>)7<><1B> <15>r[c# <09><>"<00>\VPW44p\VP4'd*\ W0P 4VPR7x<00>R#Vx<00>R#5i)<02>r<><00>padN)r1<00> _get_syntax<61>anyr<79>r#r<>)r_rPr[<00>segmentss&&& rX<00>__rich_console__<5F>Syntax.__rich_console__<5F>sJ<00><00><00><1C>D<EFBFBD>,<2C>,<2C>W<EFBFBD>><3E>?<3F><08> <0E>t<EFBFBD>|<7C>|<7C> <1C> <1C><19>(<28>*><3E>*><3E>*@<40>d<EFBFBD>l<EFBFBD>l<EFBFBD>S<> S<><1A>N<EFBFBD>s<00>A%A'c<01>$<00>V^8<>dQhRRRRRR/#)rRrPr*r[r+rUzIterable[Segment]rV)rWs"rXrYr<><00>s-<00><00>H#<23>H#<23><18>H#<23> <20>H#<23>
<1B> H#r[c # <0A>X "<00>VP4PpVPwrErgWu,pVPfJVP'd%VP
VP ,
^,
M VP
V,
M VPp \^V 4p VPVP4wr<>VPW<>P4p VP'EgcVP'EgPVP'Eg=V
'gV PR4VP4VPP\ 4,\#RR7,VP$,p VP&'d7VP('g%V P+VP,V R7p RV nV P'd-VP1W<>P3V R7R7Rjx<01>L
R#VP5V VP3V RR R
7VP$RRR 7pVF pTRjx<01>L
K R#VP;'gRwpp^pV'd\^V^,
4pV P7RV
R 7pVP'dV\9V48<>dR#VVVpVP&'d<>VP('g<>VP4VPP\ 4,\#RR7,VP$,p \;R4P=V4P+VP,V \#R R7,R7P7RRR 7pVP pVP3V R7pVP>P@p\BpV!R4pVPD'dRMRpVPGV4wppp\IVVPJV,4EF|wppVP'd-VP5VVP3RR R7VV'*R7pMW\MVP1VRR74p VPN'dV .pM%VPQV VP
VV'*R7.pVP'd<>V!RV,R,V4p!\SV4F<>wp"p#V"'do\UV4PWV^,
4R,p$V!V4'd"V!V\#RR74x<00>V!V$V4x<00>MV!RV4x<00>V!V$V4x<00>MV!x<00>T#Rjx<01>L
Vx<00>K<> EKeVFp#T#Rjx<01>L
Vx<00>K EK R#EL<>EL^L3L5i)zS
Get the Segments for the Syntax object, excluding any vertical/horizontal padding
NrTr9)r<><00>crop)rc)r[r)rc<00>heightr)r<>rj<00> new_lines)<01> allow_blankF)r<>z> u❱ )rsrri<00>)r<><00> rAr7z )NN),r<>r/r<>r<>r<><00> max_widthrMra<00> _process_coder<65>r5r<>r<><00> remove_suffixr<78>r`rrr<>r<><00>
ascii_only<EFBFBD>with_indent_guidesr<73><00>overflow<6F>render<65>update<74> render_lines<65>splitrIr3<00>joinr<6E><00> __contains__r0<00>legacy_windowsrX<00> enumerater<65><00>listr<00>adjust_line_lengthr%r{<00>rjust)%r_rPr[r/<00>_pad_top<6F> pad_right<68> _pad_bottom<6F>pad_left<66>horizontal_paddingr<67><00>
ends_on_nl<EFBFBD>processed_coder
r<><00> syntax_lines<65> syntax_liner<65><00>end_line<6E> line_offsetrd<00>numbers_column_width<74>render_options<6E>highlight_line<6E>_Segmentr<00> line_pointerr<72>rVrWr#r^<00> wrapped_linesrm<00>wrapped_line_left_pad<61>first<73> wrapped_line<6E> line_columns%&&& rXrk<00>Syntax._get_syntax<61>s<00><00><00>"&<26>!5<>!5<>!7<>!N<>!N<><1E>59<35>\<5C>\<5C>2<><08>[<5B>%<25>1<><1A><14><EFBFBD><EFBFBD>&<26> <18>$<24>$<24>$<24><19>"<22>"<22>T<EFBFBD>%?<3F>%?<3F>?<3F>!<21>C<><1C>&<26>&<26> <20>  !<21><16><1F><1F> <13><19><11>J<EFBFBD>'<27>
<EFBFBD>%)<29>%7<>%7<><04> <09> <09>%B<>"<22>
<EFBFBD><13>~<7E>~<7E>n<EFBFBD>o<EFBFBD>o<EFBFBD>><3E><04><13> <20> <20> <20><14><1E><1E><1E><04><0F><0F><0F><1D><14>"<22>"<22>4<EFBFBD>(<28><15>$<24>$<24>&<26><16>+<2B>+<2B>1<>1<>'<27>:<3A>;<3B><17>D<EFBFBD>/<2F>"<22><17>'<27>'<27>(<28> <12> <14>!<21>!<21>!<21>'<27>*<<3C>*<<3C>*<<3C><1B>.<2E>.<2E>t<EFBFBD>}<7D>}<7D>E<EFBFBD>.<2E>J<><04> &<26><04> <0A><14>+<2B>+<2B>+<2B>"<22>><3E>><3E><18>.<2E>.<2E>z<EFBFBD>.<2E>"B<>*<2A><12><12><12> <13> '<27>3<>3<><18><1B>N<EFBFBD>N<EFBFBD><1A>D<EFBFBD>&<26>N<EFBFBD>Q<><1E>/<2F>/<2F><1C>"<22> 4<> <12> <0C>$0<>K<EFBFBD>*<2A>*<2A>*<2A>$0<> <12>#<23><EFBFBD><EFBFBD>><3E>><3E>,<2C><1C>
<EFBFBD>H<EFBFBD><17> <0B> <15><1D>a<EFBFBD><1A>a<EFBFBD><1E>0<>K<EFBFBD>*.<2E>*<2A>*<2A>T<EFBFBD>z<EFBFBD>*<2A>*R<><05> <0F>?<3F>?<3F>?<3F><1A>S<EFBFBD><15>Z<EFBFBD>'<27><16><19>+<2B>h<EFBFBD>/<2F>E<EFBFBD> <0F> <1D> <1D> <1D>g<EFBFBD>&8<>&8<>&8<><14>$<24>$<24>&<26><16>+<2B>+<2B>1<>1<>'<27>:<3A>;<3B><17>D<EFBFBD>/<2F>"<22><17>'<27>'<27>(<28> <12><15>T<EFBFBD>
<EFBFBD><15><14>e<EFBFBD><1B>#<23>#<23>D<EFBFBD>M<EFBFBD>M<EFBFBD><15><15>e<EFBFBD>AT<41>9T<39>#<23>U<><16><15>t<EFBFBD><14><15>.<2E> <12> $<24>9<>9<><1C> <20><1E><1E>j<EFBFBD><1E>9<><0E><1D>-<2D>-<2D>:<3A>:<3A><0E><1A><08><1B>D<EFBFBD>><3E><08>&<26>5<>5<>5<>t<EFBFBD>6<EFBFBD> <0C> <11> #<23> #<23>G<EFBFBD> ,<2C> 
<EFBFBD> <1C> <18> "<22>'<27>u<EFBFBD>d<EFBFBD>o<EFBFBD>o<EFBFBD> <0B>.K<>L<>M<EFBFBD>G<EFBFBD>T<EFBFBD><13>~<7E>~<7E>~<7E> '<27> 4<> 4<><18>"<22>)<29>)<29><14>v<EFBFBD>)<29>F<>*<2A>2<>2<> !5<>!<12> <0A> <20><04> <0B> <0B>G<EFBFBD><12> <0B> <<3C>=<3D><08><1A>?<3F>?<3F>?<3F>%-<2D>J<EFBFBD>M<EFBFBD>!<21>3<>3<>$<24>*<2A>4<>4<>"2<>$:<3A> :<3A> 4<><1A>%<16>M<EFBFBD><14> <20> <20> <20>(0<><17>.<2E>.<2E><13>4<>6F<36>)<12>%<25>,6<>m<EFBFBD>+D<>'<27>E<EFBFBD><<3C><1C>&)<29>'<27>l<EFBFBD>&8<>&8<>9M<39>PQ<50>9Q<39>&R<>UX<55>&X<> <0B>)<29>'<27>2<>2<>"*<2A><<3C><15>U<EFBFBD>9K<39>"L<>L<>"*<2A>;<3B>8N<38>"O<>O<>"*<2A>4<EFBFBD>1G<31>"H<>H<>"*<2A>;<3B> <0C>"E<>E<>3<>3<>+<2B>+<2B>+<2B>"<22>N<EFBFBD>,E<01>%2<>L<EFBFBD>+<2B>+<2B>+<2B>"<22>N<EFBFBD>%2<>QM<01>m<12>+<2B>^,<2C>,<2C>s<EFBFBD><00>AV*<01>B,V*<01>V*<01>V*<01>B
V*<01>'5V*<01>%V*<01>V <04>AV*<01>V#<06>V*<01>#V*<01>37V*<01>+(V*<01>V*<01>&DV*<01>'C#V*<01> B'V*<01>2V&<08>3V*<01> V(<08> V*<01>#V*<01>&V*<01>(V*c<01> <00>V^8<>dQhRRRR/#)rRr
r3rUrsrV)rWs"rXrYr<>s<00><00>C<01>C<01>4<EFBFBD>C<01>D<EFBFBD>Cr[c <0A><00>VPp^.\P!RV\PR7Uu.uFpVP 4^,NK upO\ V4^,NpVP F<>p\WEP4p\WEP4pVfK3VfK9VP'dVPVPWg4KiVPVPWg4K<> R#uupi)z<>
Apply stylized ranges to a text instance,
using the given code to determine the right portion to apply the style to.
Args:
text (Text): Text instance to apply the style to.
r)<01>flagsN) <0A>plain<69>re<72>finditer<65> MULTILINEr<45>rIr<><00>#_get_code_index_for_syntax_positionr<6E>r<><00>stylize_beforer<65>r2)r_r
r<><00>match<63>newlines_offsets<74>stylized_ranger<65>r<>s&& rXr3<00>Syntax._apply_stylized_rangess<><00><00><14>z<EFBFBD>z<EFBFBD><04> <0E> 
<EFBFBD>  <20>[<5B>[<5B><14>t<EFBFBD>2<EFBFBD><<3C><<3C>H<><0E>H<>E<EFBFBD><16> <0B> <0B> <0A><01>!<21>!<21>H<><0E> 
<EFBFBD> <10><04>I<EFBFBD><01>M<EFBFBD> 
<EFBFBD><18>#<23>3<>3<>N<EFBFBD>7<> <20>"6<>"6<><0E>E<EFBFBD>6<> <20>"4<>"4<><0E>C<EFBFBD><15> <20>S<EFBFBD>_<EFBFBD>!<21>.<2E>.<2E>.<2E><18>'<27>'<27><0E>(<<3C>(<<3C>e<EFBFBD>I<><18>L<EFBFBD>L<EFBFBD><1E>!5<>!5<>u<EFBFBD>B<>4<><34>s<00> Dc<01> <00>V^8<>dQhRRRR/#)rRr<>r{rUzTuple[bool, str]rV)rWs"rXrYr<>4s<00><00>*<2A>*<2A>#<23>*<2A>*:<3A>*r[c <0A><><00>VPR4pV'dTMVR,pVP'd\P!V4MTpVPVP4pW#3#)aO
Applies various processing to a raw code string
(normalises it so it always ends with a line return, dedents it if necessary, etc.)
Args:
code (str): The raw code string to process
Returns:
Tuple[bool, str]: the boolean indicates whether the raw code ends with a line return,
while the string is the processed code.
r)r!r<><00>textwrap<61>
expandtabsr<EFBFBD>)r_r<>r<>r<>s&& rXry<00>Syntax._process_code4sY<00><00><1A>]<5D>]<5D>4<EFBFBD>(<28>
<EFBFBD>!+<2B><14><14><04><1B><0E>/3<>{<7B>{<7B>{<7B>H<EFBFBD>O<EFBFBD>O<EFBFBD>N<EFBFBD> +<2B><0E> <17>(<28>2<>2<>4<EFBFBD>=<3D>=<3D>A<><0E><19>)<29>)r[)r<>r<>r<>r<>r}r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>)F)g333333<33>?)rirjrkrlrmr<><00> classmethodr<64><00> DEFAULT_THEMEr<45>r<>r<>r<>r<>r<>r<><00>propertyr<79>r r5r9rErMrXrernrkr3ryrnrVr[rXr<>r<><00>s<><00><00><08>(/<2F>.<2E> <17><17><10> <15><11> <15>$@<01>
*7<> $@<01> <1D> $@<01>#<23>$@<01><1C>$@<01>EI<01>$@<01>/3<>$@<01>%)<29>$@<01><1A>$@<01> <20>$@<01>+/<2F>$@<01>$<24>$@<01> &'<27>!$@<01>L<1E><1F>G<EFBFBD><10> <20>-1<>)6<><1C>"<22>04<30><1B>.2<EFBFBD>$(<28><19><1F>*.<2E>#<23>%&<26>!<
<EFBFBD><11><
<EFBFBD>|<11>'<1A><11>'<1A>R<1D>
<1B><0E><18><0E><18>$<0E>
<EFBFBD><0E>
<EFBFBD>S<14>j
<EFBFBD>* -<2D><0E><1C><0E><1C>F<01>.><3E>$<1B>H#<23>TC<01>B*<2A>*r[r<>c<01>$<00>V^8<>dQhRRRRRR/#)rRr<>z Sequence[int]<5D>positionr<6E>rUr<>rV)rWs"rXrYrYIs$<00><00>7<>7<>#<23>7<>/=<3D>7<><12>7r[c<05><><00>\V4pVwr4W28<32>g\V4V^,8dR#V^,
pW^,,W,,
^,
p\Wd4pW,V,#)a<>
Returns the index of the code string for the given positions.
Args:
newlines_offsets (Sequence[int]): The offset of each newline character found in the code snippet.
position (SyntaxPosition): The position to search for.
Returns:
Optional[int]: The index of the code string for this position, or `None`
if the given position's line number is out of range (if it's the column that is out of range
we silently clamp its value so that it reaches the end of the line)
N)rI<00>min)r<>r<><00> lines_count<6E> line_number<65> column_index<65>
line_index<EFBFBD> line_lengths&& rXr<>r<>Ism<00><00><16>&<26>'<27>K<EFBFBD> (<28><1D>K<EFBFBD><12> <20>C<EFBFBD>(8<>$9<>[<5B>1<EFBFBD>_<EFBFBD>$M<><13><1C>q<EFBFBD><1F>J<EFBFBD>"<22><01>><3E>2<>5E<35>5Q<35>Q<>TU<54>U<>K<EFBFBD><16>{<7B>1<>L<EFBFBD> <1B> '<27>,<2C> 6<>6r[<00>__main__z&Render syntax to the console with Rich)<01> descriptionr<6E><00>PATHzpath to file, or - for stdin)<02>metavar<61>helpz-cz --force-color<6F> force_color<6F>
store_truezforce color for non-terminals)<04>dest<73>actionrvr<>z-iz--indent-guidesr<73>Fzdisplay indent guidesz-lz--line-numbersr<73>zrender line numbers)r<>r<>r<>z-wz--widthrcz*width of output (default will auto-detect))<04>typer<65>rvr<>z-rz--wrapr<70>zword wrap long linesz-sz --soft-wrap<61> soft_wrapzenable soft wrapping mode)r<>r<>rvr<>z-tz--themerrzpygments theme)r<>rvr<>z-bz--background-colorr}zOverride background colorz-xz--lexerr<72>z
Lexer name)rvr<>r<>z-pz --paddingr<67>r#)r<>rvr<>r<>z--highlight-liner<65>z)The line number (not index!) to highlight)r*)<02>force_terminalrc<00>-) r<>r<>r<>r<>rrr}r<>r<>r<>)r<>r<>r<>rrr}r<>r<>r<>)r<>)<29><>__conditional_annotations__<5F>
__future__r<00>os.pathr<68>r<><00>sysr<73><00>abcrr<00>pathlibr<00>typingrrr r
r r r rrrr<00>pygments.lexerr<00>pygments.lexersrr<00>pygments.styler<00> PygmentsStyle<6C>pygments.stylesr<00>pygments.tokenrrrrrrrrrr <00> pygments.utilr!<00>rich.containersr"<00> rich.paddingr#r$<00>_loopr%<00>cellsr'r8r(r)rPr*r+r,r-<00>jupyterr.<00>measurer/<00>segmentr0r1r<>r2r
r3r{rT<00>platform<72>WINDOWSr<53><00>Preproc<6F>Word<72>Builtin<69>Function<6F> Namespace<63>Class<73> Exception<6F> Decorator<6F>Variable<6C>Constant<6E> Attribute<74>Tag<61>Deleted<65>Inserted<65>Heading<6E>
Subheading<EFBFBD>PromptrFr<>rKr<>rKrOrpr<>r<>r<>r<>r<>r<>r<>ri<00>argparse<73>ArgumentParser<65>parser<65> add_argument<6E>
parse_args<EFBFBD>args<67> rich.consoler<65>rcr<><00>stdin<69>readr<64>r<>r<>r<>rrr}r<>r<>r<><00>syntaxr<78><00>printr<74>)r<>s@rX<00><module>r<>s<><00><><01>"<22>"<22><0E> <09>
<EFBFBD><0F>#<23><18> <02> <02> <02> <02>!<21>G<>1<>-<2D> <02> <02> <02>(<28>!<21>3<><1D><1B>#<23>I<>I<>!<21> <20>&<26>#<23><16> <11>#<23>s<EFBFBD>(<28>O<EFBFBD> <09>
<0A>,<2C>,<2C>'<27>
!<21><07><19> <0A>
&<02> <09>5<EFBFBD>7<EFBFBD>&<02><0E><05>G<EFBFBD>$<24>&<02> <0C>U<EFBFBD>t<EFBFBD>_<EFBFBD>&<02> <0C>O<EFBFBD>O<EFBFBD>U<EFBFBD><16>(<28> &<02>
 <0C>U<EFBFBD><16> <20> &<02>  <0C>L<EFBFBD>L<EFBFBD>%<25>f<EFBFBD>%<25> &<02> <0A>M<EFBFBD>M<EFBFBD>5<EFBFBD>y<EFBFBD>)<29>&<02> <09>L<EFBFBD>L<EFBFBD>%<25>f<EFBFBD>%<25>&<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>w<EFBFBD>'<27>&<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD><06>$<24>7<>&<02> <09>J<EFBFBD>J<EFBFBD><05>G<EFBFBD>t<EFBFBD>4<>&<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD><06>'<27>&<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD> <09><04>5<>&<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>u<EFBFBD>%<25>&<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>u<EFBFBD>%<25>&<02>  <09>N<EFBFBD>N<EFBFBD>E<EFBFBD><06>'<27>!&<02>" <09>H<EFBFBD>H<EFBFBD>e<EFBFBD>-<2D>(<28>#&<02>$ <0B>E<EFBFBD><08> !<21>
<EFBFBD>E<EFBFBD><06> <1F> <0B>O<EFBFBD>O<EFBFBD>U<EFBFBD><1C>.<2E> <0B><14><14>e<EFBFBD>'<27>*<2A> <0B>O<EFBFBD>O<EFBFBD>U<EFBFBD><04>%<25> <0B><16><16><05>I<EFBFBD>D<EFBFBD>9<> <0B>N<EFBFBD>N<EFBFBD>E<EFBFBD>t<EFBFBD>$<24> <0B>M<EFBFBD>M<EFBFBD>5<EFBFBD>|<7C>,<2C> <09>5<EFBFBD>u<EFBFBD><04> -<2D>5&<02>
<EFBFBD> "<22><02>:%<02> <09>5<EFBFBD>7<EFBFBD>%<02><0E><05>N<EFBFBD>+<2B>%<02> <0C>U<EFBFBD>t<EFBFBD>_<EFBFBD>%<02> <0C>O<EFBFBD>O<EFBFBD>U<EFBFBD><1D>/<2F> %<02>
 <0C>U<EFBFBD><1D> '<27> %<02>  <0C>L<EFBFBD>L<EFBFBD>%<25>m<EFBFBD>,<2C> %<02> <0A>M<EFBFBD>M<EFBFBD>5<EFBFBD>/<2F>0<>%<02> <09>L<EFBFBD>L<EFBFBD>%<25>m<EFBFBD>,<2C>%<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>~<7E>.<2E>%<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD> <0A><14>><3E>%<02> <09>J<EFBFBD>J<EFBFBD><05>N<EFBFBD>d<EFBFBD>;<3B>%<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD> <0A>.<2E>%<02> <09>N<EFBFBD>N<EFBFBD>E<EFBFBD> 0<>t<EFBFBD><<3C>%<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>|<7C>,<2C>%<02> <09>M<EFBFBD>M<EFBFBD>5<EFBFBD>|<7C>,<2C>%<02>  <09>N<EFBFBD>N<EFBFBD>E<EFBFBD> <0A>.<2E>!%<02>" <09>H<EFBFBD>H<EFBFBD>e<EFBFBD>-<2D>(<28>#%<02>$ <0B>E<EFBFBD><08> !<21>
<EFBFBD>E<EFBFBD> <0A> &<26> <0B>O<EFBFBD>O<EFBFBD>U<EFBFBD><1C>.<2E> <0B><14><14>e<EFBFBD>.<2E>1<> <0B>O<EFBFBD>O<EFBFBD>U<EFBFBD><04>%<25> <0B><16><16><05>$4<>4<EFBFBD>@<40> <0B>N<EFBFBD>N<EFBFBD>E<EFBFBD>t<EFBFBD>$<24> <0B>M<EFBFBD>M<EFBFBD>5<EFBFBD>|<7C>,<2C> <09>5<EFBFBD>u<EFBFBD><04> -<2D>5%<02> <09> !<21><02>:#<23>J<EFBFBD> <0B>Y<EFBFBD>G<><12>!"<22><1E> "<22>#<23> "<22>'&<26>+<2B>'&<26>T&<26>k<EFBFBD>&<26>B<17>s<EFBFBD>C<EFBFBD>x<EFBFBD><1F><0E>
<1F>J<EFBFBD>
<1F>/<2F>/<2F>V *<2A>\<5C>V *<2A>r7<>6 <0C>z<EFBFBD><19><13><0E> <15> $<24> $<24><<3C><06>F<EFBFBD> <0B><17><17><0E><16> +<2B><18><06>
 <0B><17><17> <0C><17> <1A><1B><14> ,<2C> <18><06> <0B><17><17> <0C><19> <1C><1B><15> $<24> <18><06> <0B><17><17> <0C><18> <1B><1B> "<22> <18><06> <0B><17><17> <0C><11> <10> <14><14> 9<> <18><06> <0B><17><17> <0C><10> <18><1B><15> #<23> <18><06> <0B><17><17> <0C><15><1B> <18><15> (<28> <18><06> <0B><17><17> <0C>i<EFBFBD>g<EFBFBD>y<EFBFBD>?O<><18><06> <0B><17><17> <0C><1C> <1F><14> (<28> <18><06> <0B><17><17> <0C><11><14> <19> <19> <18><06> <0B><17><17> <0C>k<EFBFBD><03>Q<EFBFBD>Y<EFBFBD>Y<EFBFBD><18><06> <0B><17><17><1A> <10><14> <1D> 8<> <18><06> <12> <1C> <1C> <1E>D<EFBFBD>$<24><15>T<EFBFBD>%5<>%5<>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>H<>G<EFBFBD> <0B>y<EFBFBD>y<EFBFBD>C<EFBFBD><17><12>y<EFBFBD>y<EFBFBD>~<7E>~<7E><1F><04><17><15><16>/<2F>/<2F><1D>*<2A>*<2A><1A>n<EFBFBD>n<EFBFBD><16>*<2A>*<2A>!<21>2<>2<><1E>,<2C>,<2C><18>L<EFBFBD>L<EFBFBD>!<21>0<>0<>1<>

<EFBFBD><06><18>!<21>!<21> <10>I<EFBFBD>I<EFBFBD><16>/<2F>/<2F><1D>*<2A>*<2A><1A>n<EFBFBD>n<EFBFBD><16>*<2A>*<2A>!<21>2<>2<><1E>,<2C>,<2C><18>L<EFBFBD>L<EFBFBD>!<21>0<>0<>1<>"<22>

<EFBFBD><06> <0C>M<EFBFBD>M<EFBFBD>&<26>D<EFBFBD>N<EFBFBD>N<EFBFBD>M<EFBFBD>3<>kr[