Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���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 2006-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 armored�asc�pem)z*.ascz*.pem�id_dsa�id_ecdsa�id_ecdsa_sk� id_ed25519� id_ed25519_sk�id_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 �5/usr/lib/python3/dist-packages/pygments/lexers/asc.py�analyse_text1 s �zAscLexer.analyse_textN)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypesr � MULTILINE�flagsr r �Headingr r r � Attributer r �tokensr r r r r r s$ � ��)r r �pygments.lexerr r �pygments.tokenr r r r r r �__all__r r r r r �<module> s