File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/__pycache__/plugin.cpython-310.pyc
o
;j� � @ sZ d Z ddlZddlmZ dZdZdZdZejdd � �Z d
d� Z
dd
� Zdd� Zdd� Z
dS )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_pointszpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc C s( t � }t|d�r|j| d�S |�| g �S )N�select)�group)r �hasattrr �get)Z
group_name�groups� r �C/opt/saltstack/salt/lib/python3.10/site-packages/pygments/plugin.py�iter_entry_points, s
r
c c s � t t�D ]} | �� V qd S �N)r
�LEXER_ENTRY_POINT�load�Z
entrypointr r r �find_plugin_lexers9 s ��r c c �$ � t t�D ]
} | j| �� fV qd S r )r
�FORMATTER_ENTRY_POINT�namer
r r r r �find_plugin_formatters>