o
    Ñ­jˆ  ã                   @   sZ   d Z ddlZddlmZ dZdZdZdZej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-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Úentry_pointszpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc                 C   s(   t ƒ }t|dƒr|j| d�S | | g ¡S )NÚselect)Úgroup)r   Úhasattrr   Úget)Ú
group_nameÚgroups© r	   úL/var/www/html/CropPilot/venv/lib/python3.10/site-packages/pygments/plugin.pyÚiter_entry_points,   s   
r   c                  c   s   � t tƒD ]} |  ¡ V  qd S ©N)r   ÚLEXER_ENTRY_POINTÚload©Ú
entrypointr	   r	   r
   Úfind_plugin_lexers9   s   €ÿr   c                  c   ó$   � t tƒD ]
} | j|  ¡ fV  qd S r   )r   ÚFORMATTER_ENTRY_POINTÚnamer   r   r	   r	   r
   Úfind_plugin_formatters>   ó   €ÿr   c                  c   r   r   )r   ÚSTYLE_ENTRY_POINTr   r   r   r	   r	   r
   Úfind_plugin_stylesC   r   r   c                  c   r   r   )r   ÚFILTER_ENTRY_POINTr   r   r   r	   r	   r
   Úfind_plugin_filtersH   r   r   )Ú__doc__Ú	functoolsÚimportlib.metadatar   r   r   r   r   Úcacher   r   r   r   r   r	   r	   r	   r
   Ú<module>   s    "
