ó
l2RTc           @   s  d  Z  d e f d     YZ e   Z e j Z e j Z e j Z e j Z e j Z e j	 Z	 e j
 Z
 e j Z e j Z e j Z e j Z e j Z e j Z e j Z e e _ e e _ e e _ d   Z d   Z iH d e 6d e 6d e 6d e 6d e 6d	 e 6d
 e	 6d e	 j 6d e	 j 6d e	 j 6d e	 j 6d e	 j 6d e	 j 6d e
 6d e
 j 6d e
 j 6d e
 j j 6d e
 j 6d e
 j 6d e
 j 6d e
 j 6d e
 j 6d e
 j  6d e
 j! 6d e
 j" 6d e
 j 6d e
 j 6d e
 j# 6d  e
 j$ 6d! e
 j$ j 6d" e
 j$ j% 6d# e
 j$ j& 6d$ e 6d% e j' 6d& e 6d' e j( 6d( e j) 6d) e j* 6d* e j+ 6d+ e j 6d, e j, 6d- e j- 6d. e j 6d/ e j. 6d0 e j/ 6d1 e j0 6d2 e 6d3 e j1 6d4 e j2 6d5 e j3 6d6 e j4 6d7 e j4 j5 6d8 e j6 6d9 e 6d: e j7 6d; e 6d< e 6d= e j8 6d> e j9 6d? e j/ 6d@ e j: 6dA e 6dB e j; 6dC e j< 6dD e j 6dE e j= 6dF e j> 6dG e j? 6dH e j@ 6dI e jA 6dJ e jB 6dK e jC 6ZD dL S(M   sĖ   
    pygments.token
    ~~~~~~~~~~~~~~

    Basic token types and the standard tokens.

    :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
t
   _TokenTypec           B   s;   e  Z d Z d    Z d   Z d   Z d   Z d   Z RS(   c         C   sC   g  } |  } x& | d  k	 r4 | j |  | j } q W| j   | S(   N(   t   Nonet   appendt   parentt   reverse(   t   selft   buft   node(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   split   s    
c         G   s   t    |  _ d  S(   N(   t   sett   subtypes(   R   t   args(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   __init__   s    c         C   s5   |  | k p4 t  |  |  j k o4 | t |    |  k S(   N(   t   typet	   __class__t   len(   R   t   val(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   __contains__   s    c         C   sh   | s | d j    r( t j |  |  St |  | f  } t |  | |  |  j j |  |  | _ | S(   Ni    (   t   isuppert   tuplet   __getattribute__R    t   setattrR
   t   addR   (   R   R   t   new(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   __getattr__"   s    	c         C   s!   d |  r d p d d j  |   S(   Nt   Tokent   .t    (   t   join(   R   (    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   __repr__+   s    N(	   t   __name__t
   __module__R   R   R   R   R   R   R   (    (    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyR       s   						c         C   s
   |  | k S(   s   
    Return True if ``ttype`` is a subtype of ``other``.

    exists for backwards compatibility. use ``ttype in other`` now.
    (    (   t   ttypet   other(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   is_token_subtypeM   s    c         C   sP   t  |  t  r |  S|  s t St } x& |  j d  D] } t | |  } q3 W| S(   s}  
    Convert a string into a token type::

        >>> string_to_token('String.Double')
        Token.Literal.String.Double
        >>> string_to_token('Token.Literal.Number')
        Token.Literal.Number
        >>> string_to_token('')
        Token

    Tokens that are already tokens are returned unchanged:

        >>> string_to_token(String)
        Token.Literal.String
    R   (   t
   isinstanceR    R   R   t   getattr(   t   sR   t   item(    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   string_to_tokentypeV   s    R   t   wt   esct   errt   xt   kt   kct   kdt   knt   kpt   krt   ktt   nt   nat   nbt   bpt   nct   not   ndt   nit   net   nft   pyt   nlt   nnt   nxt   ntt   nvt   vct   vgt   vit   lt   ldR%   t   sbt   sct   sdt   s2t   set   sht   sit   sxt   srt   s1t   sst   mt   mbt   mft   mht   mit   ilt   mot   ot   owt   pt   ct   cmt   cpt   c1t   cst   gt   gdt   get   grt   ght   git   got   gpt   gst   gut   gtN(E   t   __doc__R   R    R   t   Textt
   Whitespacet   Escapet   Errort   Othert   Keywordt   Namet   Literalt   Stringt   Numbert   Punctuationt   Operatort   Commentt   GenericR"   R'   t   Constantt   Declarationt	   Namespacet   Pseudot   Reservedt   Typet	   Attributet   Builtint   Classt	   Decoratort   Entityt	   Exceptiont   Functiont   Propertyt   Labelt   Tagt   Variablet   Globalt   Instancet   Datet   Backtickt   Chart   Doct   Doublet   Heredoct   Interpolt   Regext   Singlet   Symbolt   Bint   Floatt   Hext   Integert   Longt   Octt   Wordt	   Multilinet   Preproct   Specialt   Deletedt   Empht   Headingt   Insertedt   Outputt   Promptt   Strongt
   Subheadingt	   Tracebackt   STANDARD_TYPES(    (    (    s2   /usr/lib/python2.7/dist-packages/pygments/token.pyt   <module>
   s¼   #																					


















































