R`i
6 d Z dZdZdZdZd Zd Zd Zd Zd Z y
)a
pygments.plugin
~~~~~~~~~~~~~~~
Pygments plugin interface. By default, this tries to use
``importlib.metadata``, which is in the Python standard
library since Python 3.8, or its ``importlib_metadata``
backport for earlier versions of Python. It falls back on
``pkg_resources`` if not found. Finally, if ``pkg_resources``
is not found either, no plugins are loaded at all.
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-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
zpygments.lexerszpygments.formatterszpygments.styleszpygments.filtersc " ddl m} | }t |d r|j | S |j | g S # t $ rF ddlm} n;# t $ r/ ddlm} || cY cY S # t t f$ r g cY cY cY S w xY ww xY wY w xY w)N )entry_points)iter_entry_pointsselect)group)
importlib.metadatar ImportErrorimportlib_metadatapip._vendor.pkg_resourcesr OSErrorhasattrr get)
group_namer r groupss /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/pygments/plugin.pyr r / s 53 ^Fvx }}:}.. zz*b))% 5 57 5
5G )44 )
5
8 5sW ? B AB BA, B(B,B=B?BBBB
Bc # X K t t D ] } | j y wN)r LEXER_ENTRY_POINTload
entrypoints r find_plugin_lexersr G s# '(9:
oo ;s (*c # p K t t D ] } | j | j f " y wr )r FORMATTER_ENTRY_POINTnamer r s r find_plugin_formattersr L s, '(=>
ooz000 ? 46c # p K t t D ] } | j | j f " y wr )r STYLE_ENTRY_POINTr r r s r find_plugin_stylesr Q s, '(9:
ooz000 ;r c # p K t t D ] } | j | j f " y wr )r FILTER_ENTRY_POINTr r r s r find_plugin_filtersr# V s, '(:;
ooz000