
    Mh                         d Z ddlZddlmZmZ ddlmZmZmZm	Z	 ddl
mZ g dZ G d de          Z G d	 d
e          Zi Z G d de          ZdS )z
    pygments.lexers.special
    ~~~~~~~~~~~~~~~~~~~~~~~

    Special lexers.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)Lexerline_re)TokenErrorTextGeneric)get_choice_opt)	TextLexerOutputLexerRawTokenLexerc                   @    e Zd ZdZdZdgZdgZdgZdZdZ	dZ
d Zd	 Zd
S )r
   z3
    "Null" lexer, doesn't highlight anything.
    z	Text onlytextz*.txtz
text/plain g{Gz?c              #   "   K   dt           |fV  d S Nr   )r   selfr   s     W/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/special.pyget_tokens_unprocessedz TextLexer.get_tokens_unprocessed"   s      tm    c                     t           j        S )N)r
   priority)r   s    r   analyse_textzTextLexer.analyse_text%   s    !!r   N)__name__
__module____qualname____doc__namealiases	filenames	mimetypesurlversion_addedr   r   r    r   r   r
   r
      sg          DhG	II
CMH  " " " " "r   r
   c                   .    e Zd ZdZdZdgZdZdZdZd Z	dS )	r   zN
    Simple lexer that highlights everything as ``Token.Generic.Output``.
    zText outputoutputr   z2.10zoutput/outputc              #   ,   K   dt           j        |fV  d S r   )r   Outputr   s     r   r   z"OutputLexer.get_tokens_unprocessed3   s!      %%%%%%r   N)
r   r   r   r   r   r   r"   r#   _exampler   r$   r   r   r   r   )   sJ          DjG
CMH& & & & &r   r   c                   >    e Zd ZdZdZg Zg ZdgZdZdZ	d Z
d Zd Zd	S )
r   a  
    Recreate a token stream formatted with the `RawTokenFormatter`.

    Additional options accepted:

    `compress`
        If set to ``"gz"`` or ``"bz2"``, decompress the token stream with
        the given compression algorithm before lexing (default: ``""``).
    zRaw token datazapplication/x-pygments-tokensz7https://pygments.org/docs/formatters/#RawTokenFormatterr   c                 \    t          |dg dd          | _        t          j        | fi | d S )Ncompress)r   nonegzbz2r   )r	   r,   r   __init__)r   optionss     r   r0   zRawTokenLexer.__init__K   sB    &w
'@'@'@"F Ft''w'''''r   c              #   &  K   | j         rt          |t                    r|                    d          }	 | j         dk    rdd l}|                    |          }n$| j         dk    rdd l}|                    |          }n.# t          $ r! t          |	                    d          fV  Y nw xY wt          |t                    r|	                    d          }|                    d          dz   }|                     |          D ]\  }}}||fV  d S )Nlatin1r.   r   r/   
)r,   
isinstancestrencodegzip
decompressr/   OSErrorr   decodebytesstripr   )r   r   r8   r/   itvs          r   
get_tokenszRawTokenLexer.get_tokensP   s>     = 	3$$$ -{{8,,3=D((KKK??400DD]e++JJJ>>$//D 3 3 3T[[222222223dE"" 	);;x((D zz$$&22488 	 	GAq!Q$JJJJ	 	s   A	A? ?(B*)B*c              #     K   d}t          j        |          D ]O}	 |                                                                                    dd          \  }}t
                              |          }|snt          }|                    d          dd          }|D ]=}|r|d                                         st          d          t          ||          }>|t
          |<   t          j        |          }t          |t                    st          d          n2# t          t          f$ r |                                }t           }Y nw xY w|||fV  |t#          |          z  }Qd S )Nr   	   .zmalformed token namezexpected str)r   finditergrouprstripsplit_ttype_cachegetr   isupper
ValueErrorgetattrastliteral_evalr5   r6   SyntaxErrorr   len)	r   r   lengthmatchttypestrvalttypettypesttype_s	            r   r   z$RawTokenLexer.get_tokens_unprocessede   s     %d++ 	 	E % 4 4 6 6 < <T1 E E#$((22 3!E%^^C004F"( 7 7% EVAY->->-@-@ E",-C"D"DD 'v 6 6-2L*&s++!#s++ 5$^4445,   kkmm %$$$$c#hhFF'	 	s   C?D,EEN)r   r   r   r   r   r   r    r!   r"   r#   r0   rA   r   r$   r   r   r   r   :   sn          DGI01I
CCM( ( (
  *    r   r   )r   rO   pygments.lexerr   r   pygments.tokenr   r   r   r   pygments.utilr	   __all__r
   r   rJ   r   r$   r   r   <module>r^      s    


 ) ) ) ) ) ) ) ) 6 6 6 6 6 6 6 6 6 6 6 6 ( ( ( ( ( ( 8
7
7" " " " " " " "(& & & & &% & & & @ @ @ @ @E @ @ @ @ @r   