Current File : //proc/self/root/lib/python3/dist-packages/pygments/lexers/__pycache__/typoscript.cpython-312.pyc
�

|�e ���dZddlZddlmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZgd�ZGd�de�ZGd�d	e�ZGd
�de�Zy)a�
    pygments.lexers.typoscript
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for TypoScript

    `TypoScriptLexer`
        A TypoScript lexer.

    `TypoScriptCssDataLexer`
        Lexer that highlights markers, constants and registers within css.

    `TypoScriptHtmlDataLexer`
        Lexer that highlights markers, constants and registers within html tags.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include�bygroups�using)�Text�Comment�Name�String�Number�Operator�Punctuation)�TypoScriptLexer�TypoScriptCssDataLexer�TypoScriptHtmlDataLexerc
�B�eZdZdZdZdgZddeeeje�fdeejeejejej�fdeeejejeejeje�fdefd	e
fd
e
fdefdefgiZy
)rzn
    Lexer that highlights markers, constants and registers within css blocks.

    .. versionadded:: 2.2
    �TypoScriptCssData�typoscriptcssdata�root�(.*)(###\w+###)(.*)�%(\{)(\$)((?:[\w\-]+\.)*)([\w\-]+)(\})�+(.*)(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})(.*)�\s+�/\*(?:(?!\*/).)*\*/�G(?<!(#|\'|"))(?:#(?!(?:[a-fA-F0-9]{6}|[a-fA-F0-9]{3}))[^\n#]+|//[^\n]*)�[<>,:=.*%+|]z[\w"\-!/&;(){}]+N)�__name__�
__module__�__qualname__�__doc__�name�aliasesrr
r	�Constant�Symbolrrr�tokens���</usr/lib/python3/dist-packages/pygments/lexers/typoscript.pyrrs�����D�"�#�G�	�
#�X�f�d�m�m�V�%L�M�
5�
�f�m�m�X�t�}�}��m�m�V�]�]�4�
5�<�
�f�f�m�m�T�]�]�H��m�m�V�]�]�F�<�
=��T�N�
#�W�-�
W�
�
��f�%�
 �&�)�'
��Fr&rc�V�eZdZdZdZdgZddejfdefde	eeje�fde	ejeejejej�fd	e	eejejeejeje�fd
e
fdefdefgiZy
)rzm
    Lexer that highlights markers, constants and registers within html tags.

    .. versionadded:: 2.2
    �TypoScriptHtmlData�typoscripthtmldatarz(INCLUDE_TYPOSCRIPT)�(EXT|FILE|LLL):[^}\n"]*rrrrrz[\w"\-!/&;(){}#]+N)rrrrr r!r	�Classr
rr"r#rrr$r%r&r'rr@s���� �D�#�$�G�	�
$�d�j�j�1�
'��0�
#�X�f�d�m�m�V�%L�M�
5�
�f�m�m�X�t�}�}��m�m�V�]�]�4�
5�<�
�f�f�m�m�T�]�]�H��m�m�V�]�]�F�<�
=��T�N�
�f�%�
!�6�*�'
��Fr&rc�*�eZdZdZdZdZdgZdgZdgZe	je	jzZe
d�e
d�e
d	�e
d
�e
d�e
d�e
d
�e
d�e
d�e
d�e
d�gdeej ej$eej �fdej(fdeeej,�fdej.fdej.fdej.fdej.fdej(fgdefgdee�fdefdeej.eej ee��fgdej8fdej:fd ej$fgd!efd"eee�fgd#efgd$efgd%ej fgd&eej eej$ej$ej �fd'eej ej$eej$ej �fd(ej>fgd)e fd*e fd+e fgd,efgd-�Z!y.)/rz?
    Lexer for TypoScript code.

    .. versionadded:: 2.2
    �
TypoScriptz3http://docs.typo3.org/typo3cms/TyposcriptReference/�
typoscriptz*.typoscriptztext/x-typoscript�comment�constant�html�label�
whitespace�keywords�punctuation�operator�	structure�literal�othera(?i)(\[)(browser|compatVersion|dayofmonth|dayofweek|dayofyear|device|ELSE|END|GLOBAL|globalString|globalVar|hostname|hour|IP|language|loginUser|loginuser|minute|month|page|PIDinRootline|PIDupinRootline|system|treeLevel|useragent|userFunc|usergroup|version)([^\]]*)(\])z�(?=[\w\-])(HTMLparser|HTMLparser_tags|addParams|cache|encapsLines|filelink|if|imageLinkWrap|imgResource|makelinks|numRows|numberFormat|parseFunc|replacement|round|select|split|stdWrap|strPad|tableStyle|tags|textStyle|typolink)(?![\w\-])a(?:(=?\s*<?\s+|^\s*))(cObj|field|config|content|constants|FEData|file|frameset|includeLibs|lib|page|plugin|register|resources|sitemap|sitetitle|styles|temp|tt_[^:.\s]*|types|xmlnews|INCLUDE_TYPOSCRIPT|_CSS_DEFAULT_STYLE|_DEFAULT_PI_VARS|_LOCAL_LANG)(?![\w\-])a*(?=[\w\-])(CASE|CLEARGIF|COA|COA_INT|COBJ_ARRAY|COLUMNS|CONTENT|CTABLE|EDITPANEL|FILE|FILES|FLUIDTEMPLATE|FORM|HMENU|HRULER|HTML|IMAGE|IMGTEXT|IMG_RESOURCE|LOAD_REGISTER|MEDIA|MULTIMEDIA|OTABLE|PAGE|QTOBJECT|RECORDS|RESTORE_REGISTER|SEARCHRESULT|SVG|SWFOBJECT|TEMPLATE|TEXT|USER|USER_INT)(?![\w\-])z�(?=[\w\-])(ACTIFSUBRO|ACTIFSUB|ACTRO|ACT|CURIFSUBRO|CURIFSUB|CURRO|CUR|IFSUBRO|IFSUB|NO|SPC|USERDEF1RO|USERDEF1|USERDEF2RO|USERDEF2|USRRO|USR)zo(?=[\w\-])(GMENU_FOLDOUT|GMENU_LAYERS|GMENU|IMGMENUITEM|IMGMENU|JSMENUITEM|JSMENU|TMENUITEM|TMENU_LAYERS|TMENU)z"(?=[\w\-])(PHP_SCRIPT(_EXT|_INT)?)z(?=[\w\-])(userFunc)(?![\w\-])rz<\S[^\n>]*>z	&[^;\n]*;z-(?s)(_CSS_DEFAULT_STYLE)(\s*)(\()(.*(?=\n\)))z0x[0-9A-Fa-f]+t?z[0-9]+z(###\w+###)r+z*(?![^\w\-])([\w\-]+(?:/[\w\-]+)+/?)(\S*\n)z[,.]rz[{}()\[\]\\]rz#(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})z%(#[a-fA-F0-9]{6}\b|#[a-fA-F0-9]{3}\b)rrz(\s*#\s*\n)z[\w"\-!/&;]+)rr5r4r2r9r3r6r7r8r1r0r:N)"rrrrr �urlr!�	filenames�	mimetypes�re�DOTALL�	MULTILINE�flagsrrr
r#r	r"r�Functionr�Builtinr,rrrr�Hex�Integerr
�Charrr$r%r&r'rrcs�����D�
?�C��n�G�� �I�$�%�I��I�I����$�E�
�I���J���F�O��G���L�!��J���M�"��J���K� ��I���G��
�%�
�f�m�m�T�]�]�D�&�-�-�
H�
J�3�59�M�M�
C�
K��h����
-�	
/�7�9=�
�
�	
D�� �J�J�
(�@�AE���
M�3�D�J�J�?�
.��
�
�>�E#
�J�T�N�
��U�#:�;�<�
�6�"�
=�
�d�j�j�$��
�
�u�=S�7T�
U�
W�
�!�&�*�*�-�
����'�
�T�]�]�+�	
�(��0�
:�
�f�f�
%�
'�	
��k�"�
��h�'�
�
�f�m�m�,�
�6������$�-�-�����
�
�7�
8�4������
�
�x�����
�
�7�
8�6�v�{�{�C�
�X�
�
�
#�W�-�
�W�%�	
��d�#�
�Ig�Fr&r)rr>�pygments.lexerrrrr�pygments.tokenrrr	r
rrr
�__all__rrrr%r&r'�<module>rJsT���&
�?�?����S�� �Z� �F �j� �Fv�j�vr&