B
    b+                 @   sV   d Z ddlZddlmZmZ ddlmZmZmZm	Z	m
Z
mZ dgZG dd deZdS )z
    pygments.lexers.asc
    ~~~~~~~~~~~~~~~~~~~

    Lexer for various ASCII armored files.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerbygroups)CommentGenericNameOperatorString
WhitespaceAscLexerc               @   s   e Zd ZdZdZddgZddddd	d
ddgZdddgZej	Z
defdejdfdefgdefdeejeeefdejdfdefgdZdd ZdS )r
   z~
    Lexer for ASCII armored files, containing `-----BEGIN/END ...-----` wrapped base64 data.

    .. versionadded:: 2.10
    zASCII armoredZascZpemz*.ascz*.pemZid_dsaZid_ecdsaZid_ecdsa_skZ
id_ed25519Zid_ed25519_skZid_rsazapplication/pgp-keyszapplication/pgp-encryptedzapplication/pgp-signaturez\s+z^-----BEGIN [^\n]+-----$dataz\S+z^([^:]+)(:)([ \t]+)(.*)z^-----END [^\n]+-----$root)r   r   c             C   s   t d| rdS d S )Nz^-----BEGIN [^\n]+-----\r?\nT)research)text r   2lib/python3.7/site-packages/pygments/lexers/asc.pyanalyse_text1   s    zAscLexer.analyse_textN)__name__
__module____qualname____doc__namealiases	filenamesZ	mimetypesr   	MULTILINEflagsr	   r   ZHeadingr   r   r   Z	Attributer   r   tokensr   r   r   r   r   r
      s    


)r   r   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   __all__r
   r   r   r   r   <module>	   s
    