ó
l2RTc           @   sp   d  Z  y d d l Z Wn e k
 r/ d Z n Xd 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-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iÿÿÿÿNs   pygments.lexerss   pygments.formatterss   pygments.styless   pygments.filtersc          c   s9   t  d  k r d  Sx" t  j t ƒ D] }  |  j ƒ  Vq  Wd  S(   N(   t   pkg_resourcest   Nonet   iter_entry_pointst   LEXER_ENTRY_POINTt   load(   t
   entrypoint(    (    s3   /usr/lib/python2.7/dist-packages/pygments/plugin.pyt   find_plugin_lexers1   s    c          c   sB   t  d  k r d  Sx+ t  j t ƒ D] }  |  j |  j ƒ  f Vq  Wd  S(   N(   R    R   R   t   FORMATTER_ENTRY_POINTt   nameR   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/pygments/plugin.pyt   find_plugin_formatters8   s    c          c   sB   t  d  k r d  Sx+ t  j t ƒ D] }  |  j |  j ƒ  f Vq  Wd  S(   N(   R    R   R   t   STYLE_ENTRY_POINTR   R   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/pygments/plugin.pyt   find_plugin_styles?   s    c          c   sB   t  d  k r d  Sx+ t  j t ƒ D] }  |  j |  j ƒ  f Vq  Wd  S(   N(   R    R   R   t   FILTER_ENTRY_POINTR   R   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/pygments/plugin.pyt   find_plugin_filtersF   s    (   t   __doc__R    t   ImportErrorR   R   R   R
   R   R   R	   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/pygments/plugin.pyt   <module>%   s   
			