File: //usr/local/lib/python3.10/dist-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-310.pyc
o
��hc � @ sL d Z ddlmZ dZdZdZdZdd� Zd d
� Zdd� Z d
d� Z
dd� ZdS )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-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�entry_pointszpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc C s( t � }t|d�r|j| d�S |�| g �S )N�select)�group)r �hasattrr �get)�
group_name�groups� r �F/usr/local/lib/python3.10/dist-packages/pip/_vendor/pygments/plugin.py�iter_entry_points+ s
r c c s � t t�D ]} | �� V qd S �N)r �LEXER_ENTRY_POINT�load��
entrypointr r r
�find_plugin_lexers7 s ��r c c �$ � t t�D ]
} | j| �� fV qd S r )r �FORMATTER_ENTRY_POINT�namer r r r r
�find_plugin_formatters<