2bib/SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK J r SSK J r SSK JrJr SS S .r/S Q\"\5-\"\5-r0r0rS rS rSSjrSrSrSrSSjrSSjrSSjrSrSSjrSr Sr!"SS\RD5r#\RH\%r&\#"\%5r'\'RPRS\&RP5 \'\RH\%'\'?'\'?&\'?\'?g)z pygments.lexers ~~~~~~~~~~~~~~~ Pygments lexers. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N)basename)LEXERS)get_filetype_from_buffer)find_plugin_lexers) ClassNotFound guess_decode PythonLexerPythonTracebackLexer) Python3LexerPython3TracebackLexer)get_lexer_by_nameget_lexer_for_filenamefind_lexer_class guess_lexerload_lexer_from_filecU[;aD[R"[R"U55=n[U'UR U5$[UR U5$)zBReturn whether the supplied file name fn matches pattern filename.)_pattern_cacherecompilefnmatch translatematch)fnglobpatterns ږ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/pygments/lexers/__init__.py _fn_matchesr"sR >!)+G4E4Ed4K)LL.&}}R  $  % %b ))c[USSS/5nURH!n[X5nU[UR'M# g)z0Load a lexer (and all others in the module too).N__all__) __import__r getattr _lexer_cachename) module_namemod lexer_nameclss r _load_lexersr)*s: [$yk :Ckk c&!$ SXX"rc## [R"5H nUSSv M U(aB[5H3nURURUR UR 4v M5 gg7f)zReturn a generator of tuples in the form ``(name, aliases, filenames, mimetypes)`` of all know lexers. If *plugins* is true (the default), plugin lexers supplied by entrypoints are also returned. Otherwise, only builtin ones are considered. N)rvaluesrr$aliases filenames mimetypes)pluginsitemlexers rget_all_lexersr32sV 12h ')E**emmU__eooM M*sA.A0cU[;a [U$[R"5H#upn nX:XdM[U5 [Us $ [ 5HnUR U:XdMUs $ g)z] Return the `Lexer` subclass that with the *name* attribute as given by the *name* argument. N)r#rr,r)rr$)r$r%lnamer-_r(s rrr@sh  |D!!-3]]_) GQ =  %% %.= "# 88t J$rcXU(d[SU-5e[R"5H<upn nUR5U;dMU[;a [ U5 [Us $ [ 5H%nUR5UR;dM#Us $ [SU-5e)a Return the `Lexer` subclass that has `alias` in its aliases list, without instantiating it. Like `get_lexer_by_name`, but does not instantiate the class. Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is found. .. versionadded:: 2.2 no lexer for alias %r foundrrr,lowerr#r)rr-)_aliasr%r$r-r6r(s rfind_lexer_class_by_namer<Rs 9FBCC,2MMO( 7Aq <<>W $<'[)% % -< "# <<>S[[ (J$ 5> ??rc pU(d[SU-5e[R"5HBup#n nUR5U;dMU[;a [ U5 [U"S0UD6s $ [ 5H+nUR5UR;dM#U"S0UD6s $ [SU-5e)z Return an instance of a `Lexer` subclass that has `alias` in its aliases list. The lexer is given the `options` at its instantiation. Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is found. r8r9)r;optionsr%r$r-r6r(s rr r ms 9FBCC-3MMO( 7Aq <<>W $<'[)%00 0 -< "# <<>S[[ (>> !$ 5> ??rc d0n[US5n[UR5U5 SSS5 X;a[SU<SU<35eX1nU"S0UD6$!,(df  N2=f![an[SU<SU<35eSnAf[a e[ an[SU-5eSnAff=f) aLoad a lexer from a file. This method expects a file located relative to the current working directory, which contains a Lexer class. By default, it expects the Lexer to be name CustomLexer; you can specify your own class name as the second argument to this function. Users should be very careful with the input, because this method is equivalent to running eval on the input file. Raises ClassNotFound if there are any problems importing the Lexer. .. versionadded:: 2.2 rbNz no valid z class found in z cannot read z: z#error when loading custom lexer: %sr>)openexecreadrOSError Exception)filename lexernamer?custom_namespacef lexer_classerrs rrrsI (D !Q + ,"  ,!*H!67 7&1 %W%%" ! DHcBCC  IACGHHIs9A(A+A( A%!A(( B/2BB/B**B/c ^/n[U5n[R"5HQupEpgnUHDn[X85(dMU[;a [ U5 UR [UU45 MF MS [5H:n U RH'n[X85(dMUR X45 M) M< [T[5(a [T5mU4Sjn U(aURU S9 USS$g)zGet a lexer for a filename. If multiple lexers match the filename pattern, use ``analyse_text()`` to figure out which one is more appropriate. Returns None if not found. c>UupSU;=(a S=(d SnT(a URT5U-UR4$URU-UR4$)N*g?r) analyse_text__name__priority)infor(rGbonuscodes r get_rating1find_lexer_class_for_filename..get_ratingsZ 8#+0q ##D)E13<<? ?||e#S\\11rkeyrN) rrr,rr#r)appendrr. isinstancebytesrsort) _fnrUmatchesrmodnamer$r6r.rGr(rVs ` rfind_lexer_class_for_filenamerbsG #B*0--/&qQ!H2((|+ ) T 2H=> "+: "# H2((/&$ $D! 2  $r{1~rc R[X5nU(d[SU-5eU"S0UD6$)avGet a lexer for a filename. Return a `Lexer` subclass instance that has a filename pattern matching `fn`. The lexer is given the `options` at its instantiation. Raise :exc:`pygments.util.ClassNotFound` if no lexer for that filename is found. If multiple lexers match the filename pattern, use their ``analyse_text()`` methods to figure out which one is more appropriate. no lexer for filename %r foundr>)rbr)r_rUr?ress rrrs. ( 2C >rc [R"5H2up# pEX;dMU[;a [U5 [U"S0UD6s $ [ 5HnXR ;dMU"S0UD6s $ [ SU-5e)z Return a `Lexer` subclass instance that has `mime` in its mimetype list. The lexer is given the `options` at its instantiation. Will raise :exc:`pygments.util.ClassNotFound` if not lexer for that mimetype is found. zno lexer for mimetype %r foundr>)rr,r#r)rr/r)_mimer?rar$r6r/r(s rget_lexer_for_mimetyperhs|+1--/&q!  <'W%%00 0 +: "# MM !>> !$ 85@ AArc## [[5H1n[USSup#U[;a [U5 [Uv M3 U(a[ 5ShvN ggN7f)z*Return an iterator over all lexer classes.N)sortedrr#r)r)r0rYr%r$s r_iter_lexerclassesrlsYf~"3KO | #  %4   %''''sAA$A"A$c v^ [U5n0m [5n[5HynURH+n[ X65(dMUR U5 ST U'M- UR H+n[ X65(dMUR U5 ST U'M- M{ U(d[SU-5e[U5S:XaUR5"S 0UD6$/nUH6nURU5nUS:Xa U"S 0UD6s $URX45 M8 U 4Sjn URU S9 USS"S 0UD6$) z As :func:`guess_lexer()`, but only lexers which have a pattern in `filenames` or `alias_filenames` that matches `filename` are taken into consideration. :exc:`pygments.util.ClassNotFound` is raised if no lexer thinks it can handle the content. TFrdr+?cV>USTUSUSRUSR4$Nrr+)rRrQ)tprimarys r type_sort+guess_lexer_for_filename..type_sort$s0 !gadmQqT]]AaDMMBBrrXrZr>) rsetrlr.raddalias_filenamesrlenpoprPr[r^) r__textr?rmatching_lexersr2rGresultrvrsrrs @rguess_lexer_for_filenamer~s3 #BGeO#%H2((##E*!%(--H2((##E*!&. & ) r\strgetdecoderrr rrlrP)rzr?rr6ft best_lexerr2r}s rrr0s eS ! ![[w{{:/FG LL!5v6E#E*HE "% (B ~ $R373 3tJ#%    & 9#7# # 1 KJqM & a=JqM1>?? a= #7 ##   s5 C-- C:9C:c\rSrSrSrSrSrg) _automoduleiWzAutomatically import lexers.c[R"U5nU(a([US5 [USn[ XU5 U$U[ ;a[ U[ U5$[U5erp)rrr)r#setattrCOMPATr"AttributeError)selfr$rSr(s r __getattr___automodule.__getattr__Zs_zz$  a !tAw'C D $J 6>4. .T""rr>N)rQ __module__ __qualname____firstlineno____doc__r__static_attributes__r>rrrrWs & #rr)T) CustomLexer)N)*rrsystypesros.pathr$pip._vendor.pygments.lexers._mappingrpip._vendor.pygments.modelinerpip._vendor.pygments.pluginrpip._vendor.pygments.utilrrrlistr r#rrr)r3rr<r rrbrrhrlr~r ModuleTypermodulesrQoldmodnewmod__dict__updater>rrrs 7B:A"3   248L ACG< P *% N$@6@2 IF(V&B&(($V$$N #%"" # X  X v' H M6=&*flr