
    i                     f    d Z ddlZddlmZ dZdZdZdZej        d             Z	d	 Z
d
 Zd Zd ZdS )a  
    pygments.plugin
    ~~~~~~~~~~~~~~~

    Pygments plugin interface.

    lexer plugins::

        [pygments.lexers]
        yourlexer = yourmodule:YourLexer

    formatter plugins::

        [pygments.formatters]
        yourformatter = yourformatter:YourFormatter
        /.ext = yourformatter:YourFormatter

    As you can see, you can define extensions for the formatter
    with a leading slash.

    syntax plugins::

        [pygments.styles]
        yourstyle = yourstyle:YourStyle

    filter plugin::

        [pygments.filter]
        yourfilter = yourfilter:YourFilter


    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)entry_pointszpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc                     t                      }t          |d          r|                    |           S |                    | g           S )Nselect)group)r   hasattrr   get)
group_namegroupss     L/root/projects/qq-shell/venv/lib/python3.11/site-packages/pygments/plugin.pyiter_entry_pointsr   ,   sI    ^^Fvx   * }}:}... zz*b)))    c               #   d   K   t          t                    D ]} |                                 V  d S N)r   LEXER_ENTRY_POINTload
entrypoints    r   find_plugin_lexersr   9   sA      '(9::    
oo   r   c               #   r   K   t          t                    D ]} | j        |                                 fV   d S r   )r   FORMATTER_ENTRY_POINTnamer   r   s    r   find_plugin_formattersr   >   sH      '(=>> 1 1
oz00000001 1r   c               #   r   K   t          t                    D ]} | j        |                                 fV   d S r   )r   STYLE_ENTRY_POINTr   r   r   s    r   find_plugin_stylesr   C   sH      '(9:: 1 1
oz00000001 1r   c               #   r   K   t          t                    D ]} | j        |                                 fV   d S r   )r   FILTER_ENTRY_POINTr   r   r   s    r   find_plugin_filtersr   H   sH      '(:;; 1 1
oz00000001 1r   )__doc__	functoolsimportlib.metadatar   r   r   r   r   cacher   r   r   r   r    r   r   <module>r$      s   ! !D     + + + + + +% - % '  	* 	* 	*     
1 1 1
1 1 1
1 1 1 1 1r   