| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼa& � @ sV d Z ddlZddlmZmZ ddlmZmZmZm Z m
Z
mZ dgZG dd� de�Z
dS )z�
pygments.lexers.asc
~~~~~~~~~~~~~~~~~~~
Lexer for various ASCII armored files.
:copyright: Copyright 2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
RegexLexer�bygroups)�Comment�Generic�Name�Operator�String�
Whitespace�AscLexerc @ s� e Zd ZdZdZddgZg d�Zg d�Zej Z
defdej
d fd
efgdefdeejeee�fdej
d
fd
efgd�Zdd� ZdS )r
z~
Lexer for ASCII armored files, containing `-----BEGIN/END ...-----` wrapped base64 data.
.. versionadded:: 2.10
z
ASCII armoredZascZpem)z*.ascz*.pemZid_dsaZid_ecdsaZid_ecdsa_skZ
id_ed25519Z
id_ed25519_skZid_rsa)zapplication/pgp-keyszapplication/pgp-encryptedzapplication/pgp-signaturez\s+z^-----BEGIN [^\n]+-----$�dataz\S+z^([^:]+)(:)([ \t]+)(.*)z^-----END [^\n]+-----$�root)r r c C s t �d| �rdS d S )Nz^-----BEGIN [^\n]+-----\r?\nT)�re�search)�text� r �7/usr/lib/python3.9/site-packages/pygments/lexers/asc.py�analyse_text1 s zAscLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenamesZ mimetypesr
� MULTILINE�flagsr r ZHeadingr r r Z Attributer r �tokensr r r r r r
s"