文件操作 - asc.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/asc.cpython-311.pyc
编辑文件内容
� �E�cU � �d � d Z ddlZddlmZmZ ddlmZmZmZm Z m Z mZ dgZ G d� de� � Z dS )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 � � e Zd ZdZdZddgZg d�Zg d�Zej Z defdej d fd efgdefd eej eee� � fdej d fd efgd�Zd� 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 �4 � t j d| � � rdS d S )Nz^-----BEGIN [^\n]+-----\r?\nT)�re�search)�texts �5/usr/lib/python3/dist-packages/pygments/lexers/asc.py�analyse_textzAscLexer.analyse_text5 s&