HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/markup.cpython-38.pyc
U

)��[�O�@sndZddlZddlmZmZddlmZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZmZddlmZmZmZmZmZmZmZmZmZmZddlmZm Z d	d
ddd
ddddddgZ!Gdd	�d	e
�Z"Gdd
�d
e
�Z#Gdd�de
�Z$Gdd�de
�Z%Gdd
�d
e
�Z&Gdd�de
�Z'Gdd�de'�Z(Gdd�de�Z)Gdd�de�Z*Gdd�de�Z+Gdd�de
�Z,dS)z�
    pygments.lexers.markup
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for non-HTML markup languages.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�	HtmlLexer�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�
MarkdownLexerc@sheZdZdZdZdgZdgZdefdedfdefgd	efd
e	e
jee
�fde	ee
�fded
fgd�ZdS)rzR
    A lexer that highlights BBCode(-like) syntax.

    .. versionadded:: 0.6
    ZBBCodeZbbcodez
text/x-bbcodez[^[]+z\[/?\w+�tagz\[�\s+z(\w+)(=)("?[^\s"\]]+"?)z(=)("?[^\s"\]]+"?)z\]�#pop)�rootr&N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	mimetypesrrr	r�	Attributerr�tokens�r3r3�8/usr/lib/python3/dist-packages/pygments/lexers/markup.pyrs$�����c@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-wikiZmoinztext/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)r5N)r*r+r,r-r.r/�	filenamesr0�re�	MULTILINE�
IGNORECASE�flagsrr	rrr�Headingr
rrr�BuiltinZ	Namespace�Preprocr2r3r3r3r4r?s<�
��
��c@s�eZdZdZdZdddgZddgZdd	gZej	Z
d
d�ZdZd
Z
de�e
�e�e�fZdeejeejeeje�fdeejeeje�fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdeeeeedd��fdefdeeeejeeeedd��fdeeeejeedd��fdeeeejeedd��fdeeeejeejeeeedd��fdejfdeeeje�fd eeejeej�fd!eeedd�eedd��fd"ee j!ee e ee �fe"d�gd#efd$e d%fd&ee e j#e �fd'e fd(eej$ej%�fd)eej%ej$�fd*ej&fd+ej'fd,e fd-ejfd.efd/efgd0e fd$ee d1fd2e fgd3�Z(d4d5�Z)d6d7�Z*d8S)9ra�
    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
    ZreStructuredTextZrst�restZrestructuredtextz*.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	r�z||�d��
��}Wntk
r�YnX|�d
�}t|�}||�d�|�d�|�d
�}|dk�r@|�d
�t
|fVdSg}|�d�}d}|D]P}	t|	�|k�r�|�t|�dt|	d|�fgf�||	|d�7}n||	7}�qVt||�|��D]}
|
V�q�dS)Nr��get_lexer_by_name���������	�
�T�)�pygments.lexersrB�startr�grouprr�Wordr�handlecodeblocks�stripr�lenr�
splitlines�appendr�get_tokens_unprocessed)�self�matchrB�lexerZ	indentionZindention_size�codeZinsZ	codelines�line�itemr3r3r4�_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^( *)(:[a-zA-Z-]+:)(\s*)$z^( *)(:.*?:)([ \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\[*`:]+r7z[^`]+r(�`)r)r`rdcKs t|dd�|_tj|f|�dS�NrST�rrSr�__init__�rYZoptionsr3r3r4rhszRstLexer.__init__cCs�|dd�dkr$|dd�dkr$dS|�d�}|�d|d�}|dkr�|dd|kr�||dd	kr�||d||dkr�d
SdS)NrDz..rEr7g333333�?�
rC���z-=g�?)�find)�textZp1Zp2r3r3r4�analyse_text	s 
���zRstLexer.analyse_textN)+r*r+r,r-r.r/r8r0r9r:r<r_ZclosersZunicode_delimiters�escapeZend_string_suffixr	rr=rrr
rrrrRr�Tagrr?�ClassZFunctionr�EscaperZInterpol�Variabler1�Strong�Emphr2rhrnr3r3r3r4rls�
*������������
����
������;������Sc
@seZdZdZdZddgZdddgZdd	gZd
efde	j
fde	j
fgd
ejdfdedfdejdfdedfde
dfde
fed�defgde	jfed�defdefde	j
fgdedfdedfed�gdedfdedfde	j
fed�gde	jfd e
fed�gd!�Zd"d#�Zd$S)%rz<
    Lexer for the TeX and LaTeX typesetting languages.
    ZTeXZtexZlatexz*.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\*)ryr)r{rwrvrxcCs(dD]}|dt|��|krdSqdS)N)z\documentclassz\inputz\documentstylez\relaxT)rU)rmrPr3r3r4rnHszTexLexer.analyse_textN)r*r+r,r-r.r/r8r0rrr>r�Backtickrrrrsrrr1r
r2rnr3r3r3r4rsN
�

������)c
@s�eZdZdZdZdddgZddgZdd	gZd
ee	e
�dfdedfd
e	dfed�ge
d�d
e	fde	dfgdefdejfdejfdejfdejfde	dfgde	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
    ZGroffZgroffZnroffZmanz*.[1234567]z*.manzapplication/x-troffz
text/troffz	(\.)(\w+)�requestz\.z[^\\\n]+�textline�escapesr6r(z	\\"[^\n]*z\\[fn]\wz\\\(.{2}z	\\.\[.*\]rcz\\\nz	"[^\n"]+"z\d+z\S+r')r)r~rr}cCs`|dd�dkrdS|dd�dkr(dS|dd�dkr<dS|dd���r\|d��r\d	SdS)
NrCr7FrEz.\"TrFz.TH g�������?)�isalnum�isspace)rmr3r3r4rn|szGroffLexer.analyse_textN)r*r+r,r-r.r/r8r0r	rrrr
rrrrr�Doublerr2rnr3r3r3r4rOs<
���
�� c
@s�eZdZdZdZegZgZgZdej	dfde
fgdeej	e�dfe
d�ej	d	fge
d
�efdeee�fdefd
ejfdejfdejfdefded	fdefdefg
d�ZdS)r z�
    Lexer for Mozilla Preprocessor files (with '#' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    Zmozhashpreprocz^#��expr�	exprstart�.+z
(literal)(.*)z#pop:2)ZdefineZundef�ifZifdefZifndef�else�elifZelifdefZelifndefZendif�expand�filterZunfilterrZincludesubst�errorr()�!z!=z==z&&z||z
(defined)(\()z\)rzz__\w+?__z@\w+?@z\w+r6r'z\S)r)r�r�N)r*r+r,r-r.r/r8r0rr?rr	rrrrrrZDecimalrrsrqr2r3r3r3r4r �s4
���	
��c@s:eZdZdZdZegZgZgZddej	dfde
fgiZdS)r!z�
    Lexer for Mozilla Preprocessor files (with '%' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    Zmozpercentpreprocr)z^%r�r�N)r*r+r,r-r.r/r8r0rr?rr2r3r3r3r4r!�s
��cs4eZdZdZdZdgZdgZgZ�fdd�Z�Z	S)r"z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `XmlLexer`.

    .. versionadded:: 2.0
    zXUL+mozpreproczxul+mozpreprocz*.xul.incstt|�jttf|�dS�N)�superr"rhrr ri��	__class__r3r4rh�s
��zMozPreprocXulLexer.__init__�
r*r+r,r-r.r/r8r0rh�
__classcell__r3r3r�r4r"�scs4eZdZdZdZdgZdgZgZ�fdd�Z�Z	S)r#z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `JavascriptLexer`.

    .. versionadded:: 2.0
    zJavascript+mozpreproczjavascript+mozpreprocz*.js.incstt|�jttf|�dSr�)r�r#rhrr rir�r3r4rh�s
��z"MozPreprocJavascriptLexer.__init__r�r3r3r�r4r#�scs4eZdZdZdZdgZdgZgZ�fdd�Z�Z	S)r$z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `CssLexer`.

    .. versionadded:: 2.0
    zCSS+mozpreproczcss+mozpreprocz*.css.incstt|�jttf|�dSr�)r�r$rhrr!rir�r3r4rh�s
��zMozPreprocCssLexer.__init__r�r3r3r�r4r$�sc@s<eZdZdZdZdgZdgZdgZej	Z
dd�Zdee
je�fd	ee
je�fd
eeeeeedd��fd
eeeeeedd��fdeeeeedd��fdeee
j�fdeeee�fdefed�g	defdeee
je�fdeee
jde�fdeee
je�fdejfdejfdeeejeeeje�fdefdefg	d�Zdd�ZdS)r%zt
    For `Markdown <https://help.github.com/categories/writing-on-github/>`_ markup.

    .. versionadded:: 2.2
    ZmarkdownZmdz*.mdztext/x-markdownccs�ddlm}|�d�t|�d�fV|�d�t|�d�fV|�d�t|�d�fVd}|jr�z||�d����}Wntk
r�YnX|�d�}|dkr�|�d�t|fVnt	g|�
|��D]
}|Vq�|�d�t|�d�fVdS)	zV
        match args: 1:backticks, 2:lang_name, 3:newline, 4:code, 5:backticks
        rrArCrDrENrFrG)rOrBrPrrQrrSrTrrrX)rYrZrBr[r\r^r3r3r4�_handle_codeblocks 
zMarkdownLexer._handle_codeblockz^(#)([^#].+\n)z^(#{2,6})(.+\n)z^(\s*)([*-] )(\[[ xX]\])( .+\n)r`raz^(\s*)([*-])(\s)(.+\n)z^(\s*)([0-9]+\.)( .+\n)z^(\s*>\s)(.+\n)z^(```\n)([\w\W]*?)(^```$)z ^(```)(\w+)(\n)([\w\W]*?)(^```$)rcz(\s)([*_][^*_]+[*_])(\W|\n)z(\s)((\*\*|__).*\3)((?=\W|\n))Nz(\s)(~~[^~]+~~)((?=\W|\n))z`[^`]+`z[@#][\w/:]+z (!?\[)([^]]+)(\])(\()([^)]+)(\))z[^\\\s]+r7)r)r`cKs t|dd�|_tj|f|�dSrfrgrir3r3r4rhPszMarkdownLexer.__init__) r*r+r,r-r.r/r8r0r9r:r<r�r	rr=rZ
Subheadingrr
rrurrrtZDeletedr|rZEntityrpr1r2rhr3r3r3r4r%�sF ������/)-r-r9Zpygments.lexers.htmlrrZpygments.lexers.javascriptrZpygments.lexers.cssrZpygments.lexerrrrr	r
rrr
rZpygments.tokenrrrrrrrrrrZ
pygments.utilrr�__all__rrrrrr r!r"r#r$r%r3r3r3r4�<module>s6
,0
�!-*:8)