8f-tdZddlZddlmZddlmZddlmZddlm Z dZ dZ d Z d Z Gd d eZd ZdS)a pygments.sphinxext ~~~~~~~~~~~~~~~~~~ Sphinx extension to generate automatic documentation of lexers, formatters and filters. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N)nodes)ViewList) Directive)nested_parse_with_titlesz .. module:: %s %s %s z` .. class:: %s :Short names: %s :Filenames: %s :MIME types: %s %s %s zA .. class:: %s :Short names: %s :Filenames: %s %s z' .. class:: %s :Name: %s %s cDeZdZdZdZdZdZdZiZdZ dZ dZ dZ d Z d S) PygmentsDoczn A directive to collect all lexers/formatters/filters and generate autoclass directives for them. Frct|_|jddkr|}n|jddkr|}n[|jddkr|}n5|jddkr|}ntdtj }t| dd }t|j |||jD]+}|j jjj|,|jS) Nrlexers formattersfilterslexers_overviewz,invalid argument for "pygmentsdoc" directive )source)set filenames argumentsdocument_lexersdocument_formattersdocument_filtersdocument_lexers_overview Exceptionrcompoundrsplitrstatedocumentsettingsrecord_dependenciesaddchildren)selfoutnodevlfns ~/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/pygments/sphinxext.pyrunzPygmentsDoc.runGs+ >!  ( (&&((CC ^A , . .**,,CC ^A ) + +''))CC ^A "3 3 3//11CCJKK K~ ciioob 1 1 1 R666. E EB J  ( < @ @ D D D D}c  ddlm}ddlm}g}g d}t |dD]\}}||d}|j|jz} ||d|j d | d d  d d pd d |d|dd|dgd} fd| D fd fd} || |dddd||  D]?} || d| d| dd| dd@|| d |S)zGenerate a tabular overview of all lexers. The columns are the lexer name, the extensions handled by this lexer (or "None"), the aliases and a link to the lexer class.rLEXERS)find_lexer_classc|r d|d|dS|S)N`z `_)nameurls r' format_linkz9PygmentsDoc.document_lexers_overview..format_linkes( ,+4++3++++Kr)cB|ddS)Nr )lowerxs r'z6PygmentsDoc.document_lexers_overview..jsAaDGMMOOr)keyr , *\*_\None.)r1 extensionsaliasesclasscHg|]tfdDS)cJg|]}| t| Sr0)len).0rowcolumns r' zCPygmentsDoc.document_lexers_overview...vs.PPPCCKPs3v;//PPPr))max)rIrKtables @r'rLz8PygmentsDoc.document_lexers_overview..vsG666$PPPP5PPPQQ666r)cg}t|D]H\}}|r)|||0|d|zId|S)zFormat a table row )zipappendljustjoin)columnsr#lengthcolcolumn_lengthss r' write_rowz7PygmentsDoc.document_lexers_overview..write_rowyswC">7;; + + +JJsyy001111JJs6z****88C== r)c&dD}|S)zWrite a table separator rowcg|]}d|zS)=r0)rIcs r'rLzQPygmentsDoc.document_lexers_overview..write_seperator..s111Q3q5111r)r0)seprXrYs r'write_seperatorz=PygmentsDoc.document_lexers_overview..write_seperators"11.111C9c? "r)Namez Extension(s)z Short name(s)z Lexer classr1rCrDz :class:`~rEr/r) $pip._vendor.pygments.lexers._mappingr,pip._vendor.pygments.lexersr-sorteditemsralias_filenamesrRr2rTreplace)r"r,r-r#r3 classnamedata lexer_clsrC column_namesr_rJrXrNrYs @@@r'rz$PygmentsDoc.document_lexers_overviewZs @?????@@@@@@    &fllnn:S:STTT  OIt((a11I",y/HHJ LL# DGY];;"ii 33;;CGGOOPSUYZZd^d99T!W-- G11i11     BAA 6666(4666 ! ! ! ! ! # # # # # # ??$$%%% 99V^_mTTUUU ??$$%%% . .C JJyyF L!I+CL+++ -- . . . . ??$$%%%yy~~r)c ddlm}ddlm}ddl}ddl}g}i}i}t |dD]P\}} | d} t| dd|g} |j | j t| |} | j std|d| j } t| t r| d} t| d d}|r|||jjd z d z |z }|d }|st-d|d|| dr<| dd}| dz } | d|dz } |D] }| d|dz } | jr d| j}nd}|| g|d| dpdd| dddddpdd| dpd| |f| |vr6| j }t|t r|d}||| <Rt |d D]\} }|| t-d!| || dd"}|t>| |d#tA|zfz|D]} |tB| z d|S)$Nrr+)pygmentsc|dSNrr0r6s r'r8z-PygmentsDoc.document_lexers.. AaDr)r9z Warning: z does not have a docstring.utf8_exampletests examplefileszutf-8)encodingzEmpty example file 'z ' for lexer rAz .. admonition:: Example z .. code-block:: z z rz.. versionadded:: rr;r@r<r=r>r?c|dSrnr0r6s r'r8z-PygmentsDoc.document_lexers..ror)zMissing docstring for rB-)"rar, pip._vendorrlinspectpathlibrcrd __import__rr __file__getattr__doc__print isinstancebytesdecodePath getabsfileparent read_textr splitlines version_added setdefaultrRrTrfstriprstrip MODULEDOCrHLEXERDOC)r"r,rlrzr{r#modulesmoduledocstringsrgrhmodulemodcls docstring example_filepcontent lexer_nameline version_linemoddocr headings r'rzPygmentsDoc.document_lexerss??????((((((%fllnn..III, 2, 2OIt!WFVT4)==C N  s| , , ,#y))C; JH)HHHIII I)U++ 5%,,V44 "3 D99L ;LL!3!3H!=!=>>EL,-/;<++w+77(#'|''$''(((7;!%aJ!DDI!LJ!L!L!LLI ' 2 2 4 4;;!%:$%:%:%::   "GC4EGG !   vr * * 1 1 $q'"",f $q'""**366>>sDIISV $q'"",f 3   ---fe,,3#]]622F+1 ($W]]__..III , ,NFF'/ A A ABBB&v.99;;A>DDFFMMcRRG JJyFGSW5E#FF G G G , , 8d?++++ ,wws||r)c jddlm}g}t|dD]\}}|d}t |dd|g}|j|jt||}|j }t|tr| d}|j } |t| d|dpdd|d d d pd|fzd |S) Nr) FORMATTERSc|dSrnr0r6s r'r8z1PygmentsDoc.document_formatters..s !r)r9rpr;rAr@rur<r=r)pip._vendor.pygments.formattersrrcrdr|rr r}r~rrrr__name__rRFMTERDOCrTrf) r"rr#rgrhrrrrrs r'rzPygmentsDoc.document_formatterss<>>>>>>%j&6&6&8&8nnMMM / /OIt!WFVT4)==C N  s| , , ,#y))C I)U++ 5%,,V44 lG JJx7DIId1g,>,>,H&#'99T!W#5#5#=#=c5#I#I#SV#,#.. / / / /wws||r)cddlm}g}|D]\}}|jt j|jj|j }t|tr| d}| t|j||fzd|S)Nr)FILTERSrpr)pip._vendor.pygments.filtersrrdrr sysr __module__r}rrrrrR FILTERDOCrrT)r"rr#r1rrs r'rzPygmentsDoc.document_filterss888888  D DID# N  s{3>:C D D D I)U++ 5%,,V44 JJyCL$ #BB C C C Cwws||r)N)rr __qualname__r has_contentrequired_argumentsoptional_argumentsfinal_argument_whitespace option_specr(rrrrr0r)r'rr<sK %K&:::x???B$     r)rc<|dtdS)N pygmentsdoc) add_directiver)apps r'setuprsm[11111r))rrdocutilsrdocutils.statemachinerdocutils.parsers.rstrsphinx.util.nodesrrrrrrrr0r)r'rs   ************666666      wwwww)wwwt22222r)