ó
xiù\c           @   sO   d  Z  d Z d Z d Z d Z d „  Z d „  Z d „  Z d „  Z d	 „  Z	 d
 S(   s0  
    pygments.plugin
    ~~~~~~~~~~~~~~~

    Pygments setuptools plugin interface. The methods defined
    here also work if setuptools isn't installed but they just
    return nothing.

    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-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
s   pygments.lexerss   pygments.formatterss   pygments.styless   pygments.filtersc         C   s8   y d d  l  } Wn t t f k
 r* g  SX| j |  ƒ S(   Niÿÿÿÿ(   t   pkg_resourcest   ImportErrort   IOErrort   iter_entry_points(   t
   group_nameR    (    (    s.   lib/python2.7/site-packages/pygments/plugin.pyR   ,   s
    c          c   s&   x t  t ƒ D] }  |  j ƒ  Vq Wd  S(   N(   R   t   LEXER_ENTRY_POINTt   load(   t
   entrypoint(    (    s.   lib/python2.7/site-packages/pygments/plugin.pyt   find_plugin_lexers5   s    c          c   s/   x( t  t ƒ D] }  |  j |  j ƒ  f Vq Wd  S(   N(   R   t   FORMATTER_ENTRY_POINTt   nameR   (   R   (    (    s.   lib/python2.7/site-packages/pygments/plugin.pyt   find_plugin_formatters:   s    c          c   s/   x( t  t ƒ D] }  |  j |  j ƒ  f Vq Wd  S(   N(   R   t   STYLE_ENTRY_POINTR
   R   (   R   (    (    s.   lib/python2.7/site-packages/pygments/plugin.pyt   find_plugin_styles?   s    c          c   s/   x( t  t ƒ D] }  |  j |  j ƒ  f Vq Wd  S(   N(   R   t   FILTER_ENTRY_POINTR
   R   (   R   (    (    s.   lib/python2.7/site-packages/pygments/plugin.pyt   find_plugin_filtersD   s    N(
   t   __doc__R   R	   R   R   R   R   R   R   R   (    (    (    s.   lib/python2.7/site-packages/pygments/plugin.pyt   <module>%   s   					