
                         n    S r Sr " S S\5      r SSKJr  \R                  rg! \ a
    \" 5       r Nf = f)at  
The Token class, interchangeable with ``pygments.token``.

A `Token` has some semantics for a piece of text that is given a style through
a :class:`~prompt_toolkit.styles.Style` class. A pygments lexer for instance,
returns a list of (Token, text) tuples. Each fragment of text has a token
assigned, which when combined with a style sheet, will determine the fine
style.
)TokenZeroWidthEscapec                        \ rS rSrS rS rSrg)
_TokenType   c                     U(       a  US   R                  5       (       d  [        R                  X5      $ [        X4-   5      n[	        XU5        U$ )N    )isuppertuple__getattribute__r   setattr)selfvalnews      'lib/third_party/prompt_toolkit/token.py__getattr___TokenType.__getattr__   sC    #a&..**))$44'3
    c                 T    SU =(       a    S=(       d    S-   SR                  U 5      -   $ )Nr   . )join)r   s    r   __repr___TokenType.__repr__   s#    $,3,"->>r    N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r   r      s    ?r   r   r   )r   N)__doc____all__r
   r   pygments.tokenr   ImportErrorr   r   r   r   <module>r$      sJ   
? 
?$ ''  LEs   $ 44