
    Ki                     h    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y)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                 v    t               }t        |d      r|j                  |       S |j                  | g       S )Nselect)group)r   hasattrr   get)
group_namegroupss     [/home/jay/workspace/scripts/.codegraph-venv/lib/python3.12/site-packages/pygments/plugin.pyiter_entry_pointsr   ,   s9    ^Fvx  }}:}.. zz*b))    c               #   X   K   t        t              D ]  } | j                           y wN)r   LEXER_ENTRY_POINTload
entrypoints    r   find_plugin_lexersr   9   s(     '(9:  
oo s   (*c               #   p   K   t        t              D ]   } | j                  | j                         f " y wr   )r   FORMATTER_ENTRY_POINTnamer   r   s    r   find_plugin_formattersr   >   s1     '(=> 1
ooz0001   46c               #   p   K   t        t              D ]   } | j                  | j                         f " y wr   )r   STYLE_ENTRY_POINTr   r   r   s    r   find_plugin_stylesr   C   s1     '(9: 1
ooz0001r   c               #   p   K   t        t              D ]   } | j                  | j                         f " y wr   )r   FILTER_ENTRY_POINTr   r   r   s    r   find_plugin_filtersr   H   s1     '(:; 1
ooz0001r   )__doc__	functoolsimportlib.metadatar   r   r   r   r   cacher   r   r   r   r    r   r   <module>r%      sW   !D  +% - % '  	* 	* 
1
1
1r   