U
    ;»{jc  ã                   @   sL   d Z ddlmZ dZdZdZdZdd„ Zd	d
„ Zdd„ Z	dd„ Z
d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-2024 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Úentry_pointszpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc                 C   s,   t ƒ }t|dƒr|j| d�S | | g ¡S d S )NÚselect)Úgroup)r   Úhasattrr   Úget)Z
group_nameÚgroups© r   ú</tmp/pip-install-zsn1f9xv/pip/pip/_vendor/pygments/plugin.pyÚiter_entry_points+   s    
r
   c                  c   s   t tƒD ]} |  ¡ V  qd S ©N)r
   ÚLEXER_ENTRY_POINTÚload©Z
entrypointr   r   r	   Úfind_plugin_lexers7   s    r   c                  c   s"   t tƒD ]} | j|  ¡ fV  qd S r   )r
   ÚFORMATTER_ENTRY_POINTÚnamer   r   r   r   r	   Úfind_plugin_formatters<   s    r   c                  c   s"   t tƒD ]} | j|  ¡ fV  qd S r   )r
   ÚSTYLE_ENTRY_POINTr   r   r   r   r   r	   Úfind_plugin_stylesA   s    r   c                  c   s"   t tƒD ]} | j|  ¡ fV  qd S r   )r
   ÚFILTER_ENTRY_POINTr   r   r   r   r   r	   Úfind_plugin_filtersF   s    r   N)Ú__doc__Úimportlib.metadatar   r   r   r   r   r
   r   r   r   r   r   r   r   r	   Ú<module>   s   "