+
     h-  c                   sn    R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 Rt
RtRtR	t ! R
 R]4      tR tR# )z
pygments.sphinxext
~~~~~~~~~~~~~~~~~~

Sphinx extension to generate automatic documentation of lexers,
formatters and filters.

:copyright: Copyright 2006-2025 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

c                   sV   a  ] tR t^<t o RtRt^t^ tRt/ t	R t
R tR tR tR tRtV tR	# )
PygmentsDoczb
A directive to collect all lexers/formatters/filters and generate
autoclass directives for them.
Fc                s   \        4       V n        V P                  ^ ,          R8X  d   V P                  4       pMV P                  ^ ,          R8X  d   V P	                  4       pM]V P                  ^ ,          R8X  d   V P                  4       pM4V P                  ^ ,          R8X  d   V P                  4       pM\        R4      h\        P                  ! 4       p\        VP                  R4      RR7      p\        V P                  W24       V P                   F<  pV P                  P                  P                  P                   P#                  V4       K>  	  VP$                  # )	    lexersZ
formattersZfiltersZlexers_overviewz,invalid argument for "pygmentsdoc" directive
 )Zsource)Zset	filenamesZ	argumentsdocument_lexersdocument_formattersdocument_filtersdocument_lexers_overview	Exceptionr    Zcompoundr   Zsplitr   ZstateZdocumentZsettingsZrecord_dependenciesaddZchildren)selfoutZnodeZvlZfns   &    C/usr/lib/python3.14/site-packages/pip/_vendor/pygments/sphinxext.pyrunZPygmentsDoc.runG   s    >>!(&&(C^^A,.**,C^^A)+'')C^^A"33//1CJKK~~ciiob1 R6..BJJ((<<@@D !}}    c                s  aa ^ RI Hp ^ RIHp . p. pR p\	        VP                  4       R R7       F  w  rgV! V^,          4      pVP                  VP                  ,           p	TP                  RV! V^,          VP                  4      RRP                  V	4      P                  R	R
4      P                  RR4      ;'       g    RRRP                  V^,          4      RV^ ,           RV 2/4       K  	  . ROp
V
 UUu. uF=  p\        V Uu. uF$  qV,          '       g   K  \        W,          4      NK&  	  up4      NK?  	  uppoV3R loVV3R lpVP                  V! 4       4       VP                  S! RRRR4      4       VP                  V! 4       4       V F=  pVP                  S! VR,          VR,          VR,          RVR,           R24      4       K?  	  VP                  V! 4       4       RP                  V4      # u upi u uppi )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.LEXERS)find_lexer_classc                 s(    V'       d
   R V  RV R2# V # )`z <z>`_ )nameurls   &&r   format_linkZ9PygmentsDoc.document_lexers_overview.<locals>.format_linke   s    4&3%s++Kr   c                 s>    V ^,          ^,          P                  4       # )i   )ZlowerZx   &r   <lambda>Z6PygmentsDoc.document_lexers_overview.<locals>.<lambda>j   s    AaDGMMOr   Zkeyr   
extensions, *\*_\Nonealiasesclass.c                 s   < . p\        SV 4       FG  w  r#V'       d#   VP                  VP                  V4      4       K/  VP                  RV,          4       KI  	  RP                  V4      # )zFormat a table rowZ )ZzipappendZljustjoin)Zcolumnsr   ZlengthZcolcolumn_lengthss   *   r   	write_rowZ7PygmentsDoc.document_lexers_overview.<locals>.write_rowy   sS    C">7;JJsyy01JJs6z*	  < 88C= r   c                 sJ   < S U u. uF  p RV ,          NK  	  pp S! V!  # u up i )zWrite a table separator rowZ=r   )ZcZsepr-   r.   s     r   write_seperatorZ=PygmentsDoc.document_lexers_overview.<locals>.write_seperator   s,    "01.Q3q55.C1c?" 2s    ZNamezExtension(s)zShort name(s)zLexer classz	:class:`~r   r   )r   r!   r(   r)   )$pip._vendor.pygments.lexers._mappingr   Zpip._vendor.pygments.lexersr   sorteditemsr	   Zalias_filenamesr+   r   r,   replaceZmaxlen)r   r   r   r   Ztabler   	classnamedataZ	lexer_clsr!   Zcolumn_namesZcolumnZrowr/   r-   r.   s   &             @@r   r   Z$PygmentsDoc.document_lexers_overviewZ   s   
 	@@	
  &flln:STOI(a1I",,y/H/HHJLLDGY]];dii
3;;CGOOPSUYZdd^d499T!W-DG9Ai[1	 	  U B(46(4f 5P5CKK/s3;/5PQ(46		!	#
 	

?$%

9V^_mTU

?$%CJJyFL!ICL>+	- .  	

?$%yy~= Q 6s   <H
H H 4H Hc           
     sP   ^ RI Hp ^ RIHp ^ RIp^ RIp. p/ p/ p\        VP                  4       R R7       EF  w  rV	^ ,          p
\        V
RRV.4      pV P                  P                  VP                  4       \        W4      pVP                  '       g   \        RV R24       VP                  p\        V\         4      '       d   VP#                  R4      p\        VR	R4      pV'       d   VP%                  VP'                  V4      4      P(                  P(                  R
,          R,          V,          pVP+                  RR7      pV'       g   \-        RV RV 24      hV	^,          '       dK   V	^,          ^ ,          pVR,          pVRV R2,          pVP/                  4        F  pVRV R2,          pK  	  VP0                  '       d   RVP0                   2pMRpVP3                  V
. 4      P5                  TRP7                  V	^,          4      ;'       g    RRP7                  V	^,          4      P9                  RR4      P9                  RR4      ;'       g    RRP7                  V	^,          4      ;'       g    RVV34       W9  g   EKX  VP                  p\        V\         4      '       d   VP#                  R4      pVWz&   EK  	  \        VP                  4       R R7       F  w  p
pWz,          f   \-        RV
 24      hWz,          P/                  4       ^,          P;                  4       P=                  R4      pVP5                  \>        V
VR \A        V4      ,          3,          4       V F  p	VP5                  \B        V	,          4       K!  	  K  	  RP7                  V4      # )!r   r   )pygmentsNc                     V ^ ,          # r   r   r   r   r   r   -PygmentsDoc.document_lexers.<locals>.<lambda>       AaDr   r    z	Warning: z does not have a docstring.utf8Z_exampleZtestsZexamplefileszutf-8)ZencodingzEmpty example file 'z' for lexer z

    .. admonition:: Example
z
      .. code-block:: z

z
          r   z.. versionadded:: r   r"   r'   r#   r$   r%   r&   c                 r8   r9   r   r   r   r   r   r:      r;   r   zMissing docstring for r*   Z-)"r0   r   Zpip._vendorr7   inspectpathlibr1   r2   
__import__r	   r   __file__getattr__doc__Zprint
isinstancebytesdecodeZPathZ
getabsfileZparentZ	read_textr   Z
splitlinesZversion_addedZ
setdefaultr+   r,   r3   ZstripZrstrip	MODULEDOCr4   LEXERDOC)r   r   r7   r=   r>   r   modulesZmoduledocstringsr5   r6   modulemodcls	docstringZexample_fileZpZcontentZ
lexer_nameZlineZversion_lineZmoddocr   headings   &                      r   r
   ZPygmentsDoc.document_lexers   s,   ?(%flln.IIOI!WFVT4)=CNNs||,#)C;;;	),GHII)U++%,,V4	"3
D9LLL!3!3H!=>EELL,-/;<++w+7#.|nL$+'( ( 77!%aJ!DDI#;J<t!LLI ' 2 2 4!z$r%::	 !5    !3C4E4E3FG!vr*11		$q'",,f		$q'"**36>>sDISSV		$q'",,f3  -fe,,#]]62F+1 (Y  J\ %W]]_.INFF'/"8 ABB&.99;A>DDFMMcRGJJyFGSW5E#FFG

8d?+  J wws|r   c           
     sl   ^ RI Hp . p\        VP                  4       R R7       F  w  r4V^ ,          p\	        VRRV.4      pV P
                  P                  VP                  4       \        Wc4      pVP                  p\        V\        4      '       d   VP                  R4      pVP                  p	TP                  \        T	RP!                  V^,          4      ;'       g    RRP!                  V^,          4      P#                  RR	4      ;'       g    RV3,          4       K  	  R
P!                  V4      # )r   )
FORMATTERSc                 r8   r9   r   r   r   r   r   Z1PygmentsDoc.document_formatters.<locals>.<lambda>   s    !r   r    Nr<   r"   r'   r#   r$   r   )Zpip._vendor.pygments.formattersrN   r1   r2   r?   r	   r   r@   rA   rB   rC   rD   rE   __name__r+   FMTERDOCr,   r3   )
r   rN   r   r5   r6   rI   rJ   rK   rL   rM   s
   &         r   r   ZPygmentsDoc.document_formatters   s    >%j&6&6&8nMOI!WFVT4)=CNNs||,#)CI)U++%,,V4	llGJJx7DIId1g,>,H,H&#'99T!W#5#=#=c5#I#S#SV#,#. . /  N wws|r   c                s   ^ RI Hp . pVP                  4        F  w  r4V P                  P	                  \
        P                  VP                  ,          P                  4       VP                  p\        V\        4      '       d   VP                  R4      pVP                  \        VP                  W53,          4       K  	  RP!                  V4      # )r   )FILTERSr<   r   )Zpip._vendor.pygments.filtersrQ   r2   r	   r   sysrH   
__module__r@   rB   rC   rD   rE   r+   	FILTERDOCrO   r,   )r   rQ   r   r   rK   rL   s   &     r   r   ZPygmentsDoc.document_filters   s    8 IDNNs{{3>>:CCDI)U++%,,V4	JJyCLL$#BBC ) wws|r   )r	   N)rO   rS   Z__qualname__Z__firstlineno__rB   Zhas_contentZrequired_argumentsZoptional_argumentsZfinal_argument_whitespaceZoption_specr   r   r
   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r   <   sH      K %K&:x?B$
 
r   r   c                 s2    V P                  R \        4       R# )ZpygmentsdocN)Zadd_directiver   )Zappr   r   setuprU      s    m[1r   )rB   rR   Zdocutilsr    Zdocutils.statemachiner   Zdocutils.parsers.rstr   Zsphinx.util.nodesr   rF   rG   rP   rT   r   rU   r   r   r   <module>rV      sK   	   * * 6		w) wt2r   