| 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Ҽa6; � @ s� d Z ddlZddlmZmZ ddlmZmZmZm Z ddl
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZ g d�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )z�
pygments.lexers.textfmts
~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for various text formats.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�guess_lexer�get_lexer_by_name)�
RegexLexer�bygroups�default�include)
�Text�Comment�Operator�Keyword�Name�String�Number�Generic�Literal�Punctuation)�
ClassNotFound)�IrcLogsLexer�TodotxtLexer� HttpLexer�GettextLexer�NotmuchLexer�KernelLogLexerc
@ s� e Zd ZdZdZdgZdgZdgZej ej
B ZdZde
fde d ee
jej�fde d
ee
jej�dfde d ee
jeej�fde d
ee
jeee
�fdefgdejfdedfgd�ZdS )r zD
Lexer for IRC logs in *irssi*, *xchat* or *weechat* style.
zIRC logsZircz*.weechatlogz
text/x-irclogaf
(
# irssi / xchat and others
(?: \[|\()? # Opening bracket or paren for the timestamp
(?: # Timestamp
(?: (?:\d{1,4} [-/])* # Date as - or /-separated groups of digits
(?:\d{1,4})
[T ])? # Date/time separator: T or space
(?: \d?\d [:.])* # Time as :/.-separated groups of 1 or 2 digits
(?: \d?\d)
)
(?: \]|\))?\s+ # Closing bracket or paren for the timestamp
|
# weechat
\d{4}\s\w{3}\s\d{2}\s # Date
\d{2}:\d{2}:\d{2}\s+ # Time + Whitespace
|
# xchat
\w{3}\s\d{2}\s # Date
\d{2}:\d{2}:\d{2}\s+ # Time + Whitespace
)?
z^\*\*\*\*(.*)\*\*\*\*$�^z(\s*<[^>]*>\s*)$z/
(\s*<.*?>\s*) # Nick �msgzo
(\s*[*]\s+) # Star
(\S+\s+.*?\n) # Nick + rest of message z�
(\s*(?:\*{3}|<?-[!@=P]?->?)\s*) # Star(s) or symbols
(\S+\s+) # Nick + Space
(.*?\n) # Rest of message z^.*?\nz
\S+:(?!//)z.*\n�#pop)�rootr N)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re�VERBOSE� MULTILINE�flagsZ timestampr r ZPreprocr �Tagr r ZInsertedr
r � Attribute�tokens� r, r, �</usr/lib/python3.9/site-packages/pygments/lexers/textfmts.pyr s0
�
�
����r c @ s� e Zd ZdZdZddgZddgZg d�Zdd ej fd
ej
fdejfde
eeje�fd
efde
ejee�fde
ejejejee�fgiZdS )r zE
Lexer for Gettext catalog files.
.. versionadded:: 0.9
zGettext CatalogZpotZpoz*.potz*.po)zapplication/x-gettextztext/x-gettextztext/gettextr z ^#,\s.*?$z ^#:\s.*?$z^(#|#\.\s|#\|\s|#~\s|#\s).*$z^(")([A-Za-z-]+:)(.*")$z^".*"$z0^(msgid|msgid_plural|msgstr|msgctxt)(\s+)(".*")$z^(msgstr\[)(\d)(\])(\s+)(".*")$N)r r r r r! r"