3

V'íc
ã@s@dZdZdZdZdZdd„Zdd„Zd	d
„Zdd„Zd
d„Z	dS)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-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
zpygments.lexerszpygments.formatterszpygments.styleszpygments.filterscCsªyddlm}Wnltk
r|yddlm}WnFtk
rvyddlm}Wnttfk
rhgSX||ƒSYnXYnX|ƒ}t|dƒrš|j|dS|j	|gƒSdS)Né)Úentry_points)Úiter_entry_pointsÚselect)Úgroup)
Zimportlib.metadatarÚImportErrorZimportlib_metadataÚ
pkg_resourcesrÚOSErrorÚhasattrrÚget)Z
group_namerrÚgroups©rú3/tmp/pip-build-gk9425m9/Pygments/pygments/plugin.pyr/s
rccs xttƒD]}|jƒVq
WdS)N)rÚLEXER_ENTRY_POINTÚload)Ú
entrypointrrr
Úfind_plugin_lexersGsrccs&x ttƒD]}|j|jƒfVq
WdS)N)rÚFORMATTER_ENTRY_POINTÚnamer)rrrr
Úfind_plugin_formattersLsrccs&x ttƒD]}|j|jƒfVq
WdS)N)rÚSTYLE_ENTRY_POINTrr)rrrr
Úfind_plugin_stylesQsrccs&x ttƒD]}|j|jƒfVq
WdS)N)rÚFILTER_ENTRY_POINTrr)rrrr
Úfind_plugin_filtersVsrN)
Ú__doc__rrrrrrrrrrrrr
Ú<module>'s