https://t.me/RX1948
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/markup.cpython-310.pyc
o

���ash�@shdZddlZddlmZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZddlmZmZmZmZmZmZmZmZmZmZddlmZmZgd	�Z Gd
d�de	�Z!Gdd
�d
e	�Z"Gdd�de	�Z#Gdd�de	�Z$Gdd�de	�Z%Gdd�de	�Z&Gdd�de&�Z'Gdd�de
�Z(Gdd�de
�Z)Gdd�de
�Z*Gdd�de	�Z+Gd d!�d!e	�Z,dS)"z�
    pygments.lexers.markup
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for non-HTML markup languages.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�XmlLexer)�JavascriptLexer)�CssLexer)	�
RegexLexer�DelegatingLexer�include�bygroups�using�this�
do_insertions�default�words)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Other)�get_bool_opt�
ClassNotFound)�BBCodeLexer�
MoinWikiLexer�RstLexer�TexLexer�
GroffLexer�MozPreprocHashLexer�MozPreprocPercentLexer�MozPreprocXulLexer�MozPreprocJavascriptLexer�MozPreprocCssLexer�
MarkdownLexer�TiddlyWiki5Lexerc@sheZdZdZdZdgZdgZdefdedfdefgd	efd
e	e
jee
�fde	ee
�fded
fgd�ZdS)rzR
    A lexer that highlights BBCode(-like) syntax.

    .. versionadded:: 0.6
    �BBCode�bbcodez
text/x-bbcodez[^[]+z\[/?\w+�tagz\[�\s+z(\w+)(=)("?[^\s"\]]+"?)z(=)("?[^\s"\]]+"?)z\]�#pop)�rootr(N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	mimetypesrrrr�	Attributerr�tokens�r5r5�8/usr/lib/python3/dist-packages/pygments/lexers/markup.pyrs&����
�rc@s�eZdZdZdZddgZgZdgZej	ej
BZdefde
ee�fde
ejee�eje�fd	e
ejej�d
fdefde
eeje�fd
e
eeje�fdefde
eee�fdefdefdefdefg
dejdfdedfdejfdejfgd�ZdS)rzI
    For MoinMoin (and Trac) Wiki markup.

    .. versionadded:: 0.7
    zMoinMoin/Trac Wiki markupz	trac-wiki�moinztext/x-trac-wikiz^#.*$z(!)(\S+)z^(=+)([^=]+)(=+)(\s*#.+)?$z(\{\{\{)(\n#!.+)?�	codeblockz(\'\'\'?|\|\||`|__|~~|\^|,,|::)z^( +)([.*-])( )z^( +)([a-z]{1,5}\.)( )z\[\[\w+.*?\]\]z(\[[^\s\]]+)(\s+[^\]]+?)?(\])z^----+$z[^\n\'\[{!_~^,|]+�\n�.z\}\}\}r*z\{\{\{z#pushz[^{}]+)r+r8N)r,r-r.r/r0r1�	filenamesr2�re�	MULTILINE�
IGNORECASE�flagsrrrrr�Headingr	r
rr�Builtin�	Namespace�Preprocr4r5r5r5r6r>s>�
��
�
�rc@szeZdZdZdZgd�ZddgZddgZej	Z
dd	�Zd
ZdZ
de�e
�e�e�fZd
eejeejeeje�fdeejeeje�fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdefdeeeejeeeedd��fdeeeejeedd��fdeeeejeedd��fdeeeejeejeeeedd��fdejfdeeeje�fdeeedd�eedd��fdeej eeeee�fe!d�gd efd!ed"fd#eeej"e�fd$efd%eej#ej$�fd&eej$ej#�fd'ej%fd(ej&fd)efd*ejfd+efd,efgd-efd!eed.fd/efgd0�Z'd1d2�Z(d3d4�Z)d5S)6ra�
    For `reStructuredText <http://docutils.sf.net/rst.html>`_ markup.

    .. versionadded:: 0.7

    Additional options accepted:

    `handlecodeblocks`
        Highlight the contents of ``.. sourcecode:: language``,
        ``.. code:: language`` and ``.. code-block:: language``
        directives with a lexer for the given language (default:
        ``True``).

        .. versionadded:: 0.8
    �reStructuredText)�restructuredtext�rst�restz*.rstz*.restz
text/x-rstztext/prs.fallenstein.rstc
	cs��ddlm}|�d�t|�d�fV|�d�t|�d�fV|�d�tj|�d�fV|�d�t|�d�fV|�d�t|�d�fV|�d�t|�d�fV|�d	�t|�d	�fVd}|j	rvz||�d��
��}Wn	tyuYnw|�d
�}t|�}||�d�|�d�|�d
�}|dur�|�d
�t
|fVdSg}|�d�}d}|D]&}	t|	�|kr�|�t|�dt|	d|�fgf�||	|d�7}q�||	7}q�t||�|��EdHdS)Nr��get_lexer_by_name���������	�
�T�)�pygments.lexersrI�startr�grouprr�Wordr�handlecodeblocks�stripr�lenr�
splitlines�appendr�get_tokens_unprocessed)
�self�matchrI�lexer�	indention�indention_size�code�ins�	codelines�liner5r5r6�_handle_sourcecode�s>��
"
"
zRstLexer._handle_sourcecodeu'")]}>’”»!?u‐‑‒–— z((?=$)|(?=[-/:.,; \n\x00%s%s]))zH^(=+|-+|`+|:+|\.+|\'+|"+|~+|\^+|_+|\*+|\++|#+)([ \t]*\n)(.+)(\n)(\1)(\n)zc^(\S.*)(\n)(={3,}|-{3,}|`{3,}|:{3,}|\.{3,}|\'{3,}|"{3,}|~{3,}|\^{3,}|_{3,}|\*{3,}|\+{3,}|#{3,})(\n)z!^(\s*)([-*+])( .+\n(?:\1  .+\n)*)�inline��statez1^(\s*)([0-9#ivxlcmIVXLCM]+\.)( .+\n(?:\1  .+\n)*)z4^(\s*)(\(?[0-9#ivxlcmIVXLCM]+\))( .+\n(?:\1  .+\n)*)z$^(\s*)([A-Z]+\.)( .+\n(?:\1  .+\n)+)z*^(\s*)(\(?[A-Za-z]+\))( .+\n(?:\1  .+\n)+)z^(\s*)(\|)( .+\n(?:\|  .+\n)*)zl^( *\.\.)(\s*)((?:source)?code(?:-block)?)(::)([ \t]*)([^\n]+)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\8.*)?\n)+)z,^( *\.\.)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z'^( *\.\.)(\s*)(_(?:[^:\\]|\\.)+:)(.*?)$z^( *\.\.)(\s*)(\[.+\])(.*?)$z9^( *\.\.)(\s*)(\|.+\|)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z^ *\.\..*(\n( +.*\n|\n)+)?z+^( *)(:(?:\\\\|\\:|[^:\n])+:(?=\s))([ \t]*)z!^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)z2(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*)?\n)+)�\\.z``�literalz(`.+?)(<.+?>)(`__?)z`.+?`__?z(`.+?`)(:[a-zA-Z0-9:-]+?:)?z(:[a-zA-Z0-9:-]+?:)(`.+?`)z\*\*.+?\*\*z\*.+?\*z\[.*?\]_z<.+?>z
[^\\\n\[*`:]+r:z[^`]+r*�`)r+rjrncK�$t|dd�|_tj|fi|��dS�NrZT�rrZr�__init__�r`�optionsr5r5r6rs�zRstLexer.__init__cCs�|dd�dkr|dd�dkrdS|�d�}|�d|d�}|dkrA|dd|krC||dd	vrE||d||dkrGd
SdSdSdSdS)NrKz..rLr:g333333�?�
rJ���z-=g�?)�find)�text�p1�p2r5r5r6�analyse_texts 
�zRstLexer.analyse_textN)*r,r-r.r/r0r1r;r2r<r=r?ri�closers�unicode_delimiters�escape�end_string_suffixrrr@rrr	r
rrrYr�TagrrC�Classr�Escaper�Interpol�Variabler3�Strong�Emphr4rsr}r5r5r5r6rks�)������������
����������:������Rrc
@seZdZdZdZddgZgd�ZddgZdefd	e	j
fd
e	j
fgdejdfd
edfdejdfdedfde
dfde
fed�defgde	jfed�defdefde	j
fgdedfdedfed�gdedfdedfde	j
fed�gde	jfde
fed�gd�Zd d!�Zd"S)#rz<
    Lexer for the TeX and LaTeX typesetting languages.
    �TeX�tex�latex)z*.texz*.auxz*.tocz
text/x-texztext/x-latexz%.*?\nz[{}]z[&_^]z\\\[�displaymathz\\\(�
inlinemathz\$\$z\$z\\([a-zA-Z]+|.)�commandz\\$�generalz
[^\\$%&_^{}]+�[0-9]+z[-=!+*/()\[\]]z[^=!+*/()\[\]\\$%&_^{}0-9-]+z\\\)r*�mathz\\\]z\[.*?\]z\*)r�r+r�r�r�r�cCs(dD]}|dt|��|krdSqdS)N)z\documentclassz\inputz\documentstylez\relaxT)r\)rzrWr5r5r6r}Es
��zTexLexer.analyse_textN)r,r-r.r/r0r1r;r2rrrAr�Backtickrrrr�rrr3rr4r}r5r5r5r6rsP�

������)rc
@s�eZdZdZdZgd�Zgd�ZddgZdee	e
�dfd	edfd
e	dfed�ge
d�d
e	fd
e	dfgdefdejfdejfdejfdejfde	dfgd
e	dfe
d�dejfdefdefde	fgd�Zdd�ZdS)rz�
    Lexer for the (g)roff typesetting language, supporting groff
    extensions. Mainly useful for highlighting manpage sources.

    .. versionadded:: 0.6
    �Groff)�groff�nroff�man)z*.[1-9]z*.manz*.1pz*.3pmzapplication/x-troffz
text/troffz	(\.)(\w+)�requestz\.z[^\\\n]+�textline�escapesr9r*z	\\"[^\n]*z\\[fn]\wz\\\(.{2}z	\\.\[.*\]rmz\\\nz	"[^\n"]+"z\d+z\S+r))r+r�r�r�cCsd|dd�dkr
dS|dd�dkrdS|dd�dkrdS|dd���r.|d��r0d	SdSdS)
NrJr:FrLz.\"TrMz.TH g�������?)�isalnum�isspace)rzr5r5r6r}ys�zGroffLexer.analyse_textN)r,r-r.r/r0r1r;r2rrrrrrrrr��Doublerr4r}r5r5r5r6rLs>���
�� rc
@s�eZdZdZdZegZgZgZdej	dfde
fgdeej	e�dfe
d�ej	d	fge
d
�efdeee�fdefd
ejfdejfdejfdefded	fdefdefg
d�ZdS)rz�
    Lexer for Mozilla Preprocessor files (with '#' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    �mozhashpreprocz^#��expr�	exprstart�.+z
(literal)(.*)z#pop:2)�define�undef�if�ifdef�ifndef�else�elif�elifdef�elifndef�endif�expand�filter�unfilterr�includesubst�errorr*)�!z!=z==z&&z||z
(defined)(\()z\)r�z__\w+?__z@\w+?@z\w+r9r)z\S)r+r�r�N)r,r-r.r/r0r1r;r2rrCrrrr
rrrr�Decimalrr�r�r4r5r5r5r6r�s4
���
	�
�rc@s:eZdZdZdZegZgZgZddej	dfde
fgiZdS)r z�
    Lexer for Mozilla Preprocessor files (with '%' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    �mozpercentpreprocr+z^%r�r�N)r,r-r.r/r0r1r;r2rrCrr4r5r5r5r6r �s
��r c�4eZdZdZdZdgZdgZgZ�fdd�Z�Z	S)r!z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `XmlLexer`.

    .. versionadded:: 2.0
    zXUL+mozpreproczxul+mozpreprocz*.xul.inc�t�jttfi|��dS�N)�superrsrrrt��	__class__r5r6rs��zMozPreprocXulLexer.__init__�
r,r-r.r/r0r1r;r2rs�
__classcell__r5r5r�r6r!��r!cr�)r"z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `JavascriptLexer`.

    .. versionadded:: 2.0
    zJavascript+mozpreproczjavascript+mozpreprocz*.js.incr�r�)r�rsrrrtr�r5r6rs�r�z"MozPreprocJavascriptLexer.__init__r�r5r5r�r6r"�r�r"cr�)r#z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `CssLexer`.

    .. versionadded:: 2.0
    zCSS+mozpreproczcss+mozpreprocz*.css.incr�r�)r�rsrr rtr�r5r6rs�r�zMozPreprocCssLexer.__init__r�r5r5r�r6r#�r�r#c@s�eZdZdZdZddgZddgZdgZej	Z
dd	�Zd
ee
je�fdee
je�fdee
jee
je�fd
ee
jee
je�fdeeeeeedd��fdeeeeeedd��fdeeeeedd��fdeee
j�fdejfdefed�gdefdeeej�fdeee
j�fdeee
j�fdeee
j�fdeee
j�fdeee
j�fdejfdeeejeeeje�fdeeejeeeje�fd eeejeej�fd!efd"efg
d#�Zd$d%�Z d&S)'r$zt
    For `Markdown <https://help.github.com/categories/writing-on-github/>`_ markup.

    .. versionadded:: 2.2
    �Markdown�markdown�mdz*.mdz
*.markdownztext/x-markdownccs��ddlm}|�d�tj|�d�fV|�d�tj|�d�fV|�d�t|�d�fVd}|jrGz||�d����}Wn	t	yFYnw|�d�}|durZ|�d�t|fVnt
g|�|��EdH|�d�tj|�d�fVdS�	zV
        match args: 1:backticks, 2:lang_name, 3:newline, 4:code, 5:backticks
        rrHrJrKrLNrMrN)rVrIrWrr�rXrrZr[rrr_�r`rarIrbrer5r5r6�_handle_codeblock�s"��
zMarkdownLexer._handle_codeblockz(^#[^#].+)(\n)z(^#{2,6}[^#].+)(\n)z^(.+)(\n)(=+)(\n)z^(.+)(\n)(-+)(\n)z^(\s*)([*-] )(\[[ xX]\])( .+\n)rjrkz^(\s*)([*-])(\s)(.+\n)z^(\s*)([0-9]+\.)( .+\n)z^(\s*>\s)(.+\n)z^(\s*```\n[\w\W]*?^\s*```$\n)z(^(\s*```)(\w+)(\n)([\w\W]*?)(^\s*```$\n)rmz([^`]?)(`[^`\n]+`)z ([^\*]?)(\*\*[^* \n][^*\n]*\*\*)z([^_]?)(__[^_ \n][^_\n]*__)z([^\*]?)(\*[^* \n][^*\n]*\*)z([^_]?)(_[^_ \n][^_\n]*_)z([^~]?)(~~[^~ \n][^~\n]*~~)z[@#][\w/:]+z (!?\[)([^]]+)(\])(\()([^)]+)(\))z(\[)([^]]+)(\])(\[)([^]]*)(\])z^(\s*\[)([^]]*)(\]:\s*)(.+)z[^\\\s]+r:)r+rjcKrprqrrrtr5r5r6rsZrvzMarkdownLexer.__init__N)!r,r-r.r/r0r1r;r2r<r=r?r�rrr@r�
Subheadingrr	r
r�rr�rr��Deletedr�Entityr�r3�Labelr4rsr5r5r5r6r$�s`���������@r$c@s�eZdZdZdZdgZdgZdgZej	Z
dd�Zdd	�Zd
e
eeej�fde
eje�fde
eje�fd
e
eeeeedd��fde
eee�fde
ej�fde
ej�fde
ej�fde
ej�fde
eee�fdefdefed�ed�gedddd�efgdefdejfde
eeje�fd e
eej�fd!e
eej�fd"e
eej�fd#e
eeje�fd$e
eeje�fd%ejfd&ejfd'ejfd(ejfd)ejfd*ejfd+ej fd,e
eeje�fd-e
eejeej!e�fd.e
eeje�fd/e
ej!�fd0efd1efgd2�Z"d3d4�Z#d5S)6r%zf
    For `TiddlyWiki5 <https://tiddlywiki.com/#TiddlerFiles>`_ markup.

    .. versionadded:: 2.7
    �tiddler�tidz*.tidztext/vnd.tiddlywikiccs��ddlm}|�d�t|�d�fV|�d�t|�d�fV|�d�t|�d�fVd}|jrEz||�d����}Wn	tyDYnw|�d�}|durY|�d�t|fVdSt	g|�
|��EdH|�d�t|�d�fVdSr�)rVrIrWrrXrrZr[rrr_r�r5r5r6r�ks$��
z"TiddlyWiki5Lexer._handle_codeblockccs��ddlm}|�d�t|�d�fV|�d�t|�d�fVd}|jr4z|d�}Wn	ty3Ynw|�d�}|durH|�d�t|fVdStg|�|��EdH|�d�t|�d�fVdS)	zP
        match args: 1:style tag 2:newline, 3:code, 4:closing style tag
        rrHrJrKN�cssrLrM)	rVrIrWrrXrZrrr_r�r5r5r6�_handle_cssblock�s"��
z!TiddlyWiki5Lexer._handle_cssblockz^(title)(:\s)(.+\n)z^(!)([^!].+\n)z^(!{2,6})(.+\n)z^(\s*)([*#>]+)(\s*)(.+\n)rjrkz^(<<<.*\n)([\w\W]*?)(^<<<.*$)z^(\|.*?\|h)$z^(\|.*?\|[cf])$z^(\|.*?\|k)$z^(;.*)$z^(```\n)([\w\W]*?)(^```$)z ^(```)(\w+)(\n)([\w\W]*?)(^```$)z$^(<style>)(\n)([\w\W]*?)(^</style>$)�keywords)z\definez\end�caption�created�modified�tags�title�type�^z\b)�prefix�suffixrmz\d{17}z(\s)(//[^/]+//)((?=\W|\n))z(\s)(\^\^[^\^]+\^\^)z(\s)(,,[^,]+,,)z(\s)(__[^_]+__)z(\s)(''[^']+'')((?=\W|\n))z(\s)(~~[^~]+~~)((?=\W|\n))z	<<[^>]+>>z
\$\$[^$]+\$\$z
\$\([^)]+\)\$z^@@.*$z	</?[^>]+>z`[^`]+`z&\S*?;z(\[{2})([^]\|]+)(\]{2})z$(\[{2})([^]\|]+)(\|)([^]\|]+)(\]{2})z(\{{2})([^}]+)(\}{2})z(\b.?.?tps?://[^\s"]+)z[\w]+r:)r+r�rjcKrprqrrrtr5r5r6rs�rvzTiddlyWiki5Lexer.__init__N)$r,r-r.r/r0r1r;r2r<r=r?r�r�rrrrr@r�r	r
rr�r�rr�rr
r�Integerr�r��Regexr3r4rsr5r5r5r6r%_s������������Ur%)-r/r<�pygments.lexers.htmlr�pygments.lexers.javascriptr�pygments.lexers.cssr�pygments.lexerrrrrr	r
rrr
�pygments.tokenrrrrrrrrrr�
pygments.utilrr�__all__rrrrrrr r!r"r#r$r%r5r5r5r6�<module>s,
,0!-(:8)m

https://t.me/RX1948 - 2025