HOME


Mini Shell 1.0
DIR: /lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/minecraft.cpython-312.pyc
�

|�e�5���dZddlmZmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZmZmZgd�ZGd�de�ZGd�de�ZGd	�d
e�Zy)a'
    pygments.lexers.minecraft
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Minecraft related languages.
    
    SNBT. A data communication format used in Minecraft.
    wiki: https://minecraft.wiki/w/NBT_format
    
    MCFunction. The Function file for Minecraft Data packs and Add-ons.
    official: https://learn.microsoft.com/en-us/minecraft/creator/documents/functionsintroduction
    wiki: https://minecraft.wiki/w/Function
    
    MCSchema. A kind of data Schema for Minecraft Add-on Development.
    official: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/schemasreference/
    community example: https://www.mcbe-dev.net/addons/data-driven/manifest.html

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
RegexLexer�default�include�bygroups)
�Comment�Keyword�Literal�Name�Number�Operator�Punctuation�String�Text�
Whitespace)�	SNBTLexer�MCFunctionLexer�
MCSchemaLexerc�R�eZdZdZdZdZdgZdgZdgZde	dfd	e
fgd
efgde	fgdejfd
ejfdejfdej fdej$dfdej&dfgdej(fdej$fdej$dfgdej(fdej&fdej&dfgdej,fed�ed�ed�de	dfde	dfde	dfgdej,fed�ed�ed�de	dfde	dfd e	dfgd!�Zy")#rz]Lexer for stringified NBT, a data format used in Minecraft

    .. versionadded:: 2.12.0
    �SNBTz#https://minecraft.wiki/w/NBT_format�snbtz*.snbtz	text/snbt�\{�compoundz[^\{]+�\s+z[,:;]�(true|false)z-?\d+[eE]-?\d+z-?\d*\.\d+[fFdD]?z-?\d+[bBsSlLfFdD]?�"�literals.string_double�'�literals.string_single�\\.�	[^\\"\n]+�#pop�	[^\\'\n]+z
[A-Z_a-z]+�	operators�
whitespace�literalsz#push�\[�list�\}�\])�rootr$r#r%rrrr'N)�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypesr
rrr�Constantr�Float�Integerr�Double�Single�Escaper
�	Attributer�tokens���;/usr/lib/python3/dist-packages/pygments/lexers/minecraft.pyrrs����
�D�
/�C��h�G��
�I��
�I��K��,�
���	
��Z� �
�
�{�#�
�
�g�.�.�/�
����-�
!�6�<�<�0�
"�F�N�N�3��6�=�=�":�;�
�6�=�=�":�;�	
��V�]�]�#�
�6�=�=�)�
�6�=�=�&�)�#
��V�]�]�#�
�6�=�=�)�
�6�=�=�&�)�#
��D�N�N�+��K� ��L�!��J��
�K��)�
�K��(�
�K��(�

��D�N�N�+��J���K� ��L�!�
�K��)�
�K��,�
�K��(�
�c:�Fr=rc
�D�eZdZdZdZdZddgZdgZdgZdZ	id	e
d
�e
d�e
d�e
d
�e
d�e
d�e
d�g�d
deee
j�fde
jfde
jfe
d�dej"fde
jj$fg�dde
j&fde
j&fg�d
defg�dde	�d�ej*dfdej,fg�dde	��ej*d fdej*d!fed"�g�d!e
d#�d$ej*fd%ed"fe
d
�g�d e
d#�d$ej4fd%ed"fe
d
�g�d#d&e
j6fe
d�de
jj$fg�dd'efg�dd(efd)ej<fd*e
jj>fd+e jBfd,e jDfd-e jFfd.ejHd/fd0ej,d1fg�d/d2ejJfd3ejHfd.ejHd"fg�d1d2ejJfd4ej,fd0ej,d"fg�dd5e
jfg�dd6e&d7fd8e&d9fg�d:e
d
�e
d�d;e&d"fg�d<e
d
�e
d�d=e&d"fd>e&fg�e
d
�d?e
jNd@fdAe
jNd@fdBe
jNd@fd.e
jNd@d/fd0e
jNd@d1fdCe jFd@fed"�gd2ejJfd3e
jNfd.e
jNd"fgd2ejJfd4e
jNfd0e
jNd"fge
d
�dDe&dEfd>e&fed"�ge
d
�dFe
jPfdAe
jPfe
d�e
d�ed"�gdG��Z)yH)Irz�Lexer for the mcfunction scripting language used in Minecraft
    Modelled somewhat after the `GitHub mcfunction grammar <https://github.com/Arcensoth/language-mcfunction>`_.

    .. versionadded:: 2.12.0
    �
MCFunctionz!https://minecraft.wiki/w/Commands�
mcfunction�mcfz*.mcfunctionztext/mcfunctionz[>!]r*�names�commentsr%r$�propertyr#�	selectorsz^(\s*)([a-z_]+)z(?<=run)\s+[a-z_]+z$\b[0-9a-fA-F]+(?:-[0-9a-fA-F]+){4}\bz
resource-namez[A-Za-z_][\w.#%$]+z[#%$][\w.#%$]+z#?[a-z_][a-z_.-]*:[a-z0-9_./-]+z"#?[a-z0-9_\.\-]+\/[a-z0-9_\.\-\/]+rz^\s*(#�))�comments.block�comments.block.emphasizedz#.*$rHz^\s*#rIzcomments.block.normalr!zcomments.block.specialz\S+�\nz@\S+z[\-~%^?!+*<>\\/|&=.]z\.\.rz
[A-Za-z_]+z[0-7]bz%[+-]?\d*\.?\d+([eE]?[+-]?\d+)?[df]?\bz
[+-]?\d+\brzliterals.string-doublerzliterals.string-singlerr r"z@[a-z]r)�property.curly�property.keyr&)�property.squarerLrKr(rMr)�,z-#?[a-z_][a-z_\.\-]*\:[a-z0-9_\.\-/]+(?=\s*\=)�property.delimiterz#?[a-z_][a-z0-9_\.\-/]+z[A-Za-z_\-\+]+z-?\d+z[:=]!?�property.valuez$#?[a-z_][a-z_\.\-]*\:[a-z0-9_\.\-/]+)rLzproperty.key.string-doublezproperty.key.string-singlerOrPN)*r+r,r-r.r/r0r1r2r3�_block_comment_prefixrrrr
�Builtin�Variablerr4�Magic�Functionr�	Multiliner8rrr�Doc�	Decoratorrr	�Pseudo�Classr�Byter5r6r7r9r
r:�Tagr;r<r=r>rrfsY����D�
-�C��U�#�G�� �I�"�#�I�#��I���G���J���J���L�!��J���K� ��K� �
�I�	� ��*�d�l�l�!C�D�
"�D�L�L�1�5�d�m�m�D��O�$�#�G�$4�$4�5�
��
�
� 3� 3�4�
�I�6	�
/����?�3�D�M�M�B�
�7I�F	�
�Z� �
�GI�N	��,�-�Q�
/��1B�1B�
<�
>�
�g�n�n�%�
�OI�X	��+�,�
-�w�/@�/@�
(�
*�
�w�(�(�*A�B��F�O�	
�YI�d	 ��,�-�
�W�&�&�'�
�D�&�!��L�!�	"
�eI�p	$��,�-�
�V�Z�Z� �
�D�&�!��L�!�	&
�qI�|	!�
�d�n�n�%��O�$���
�
� 3� 3�4�#
�}I�P	�
$�h�/�
�QI�X	�
�g��
�g�n�n�-��D�M�M�/�/�0�
����$�
5�v�|�|�D�
�F�N�N�+�
�6�=�=�":�;�
�6�=�=�":�;�
�YI�r	!�
�V�]�]�#�
�6�=�=�)�
�6�=�=�&�)�#
�sI�|	!�
�V�]�]�#�
�6�=�=�)�
�6�=�=�&�)�#
�}I�H	�
��
�
�&�
�II�@	��K�!C�D�
�K�!D�E�
�AI�R	��L�!��J��
�K��(�
�SI�\	��L�!��J��
�K��(��;��

�]I�n
�L�!�
>�t�~�~�Oc�d�
'����9M�N�����0D�E��4�>�>�#7�9Q�R�
�4�>�>�#7�9Q�R��v�~�~�';�<��F�O�'
�,�V�]�]�#�
�4�>�>�*�
�4�>�>�6�*�'
��V�]�]�#�
�4�>�>�*�
�4�>�>�6�*�'
�
�L�!�
��%5�6�
�;���F�O�

�
�L�!�5�d�h�h�?�
'����2��J���J���F�O�
�{I�Fr=rc#��eZdZdZdZdZdgZdgZdgZde	fde
jfd	e
jfge
d
�dejdfd
edfed�gde	dfgdej$fdejdfdejfgdej$fdej&dfdej&fgdedfe
d
�dej*fdej.fdej2fdej4fdej6fdej8fdej:fdefdedfd edfd!efdejd"fdej&d#fd$ej>fd%e ej>eej8eej8eej8eeee�fd&efgd'�Z!y())rz~Lexer for Minecraft Add-ons data Schemas, an interface structure standard used in Minecraft

    .. versionadded:: 2.14.0
    �MCSchemazWhttps://learn.microsoft.com/en-us/minecraft/creator/reference/content/schemasreference/�mcschemaz
*.mcschemaz
text/mcschemarz//.*?$z	/\*.*?\*/�commentsandwhitespacez7/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gimuysd]+\b|\B)r!z(?=/))r!�badregexrJrrz[^\\']+rz[^\\"]+z^(?=\s|/|<!--)�slashstartsregexz
(?<=: )optz(?<=\s)[\w-]*(?=(\s+"|\n))z
0[bB][01]+z0[oO]?[0-7]+z0[xX][0-9a-fA-F]+z\d+z#(\.\d+|\d+\.\d*|\d+)([eE][-+]?\d+)?z	\.\.\.|=>zP\+\+|--|~|\?\?=?|\?|:|\\(?=\n)|(<<|>>>?|==?|!=?|(?:\*\*|\|\||&&|[-<>+*%&|^/]))=?z[{(\[;,]z[})\].]�singlestring�doublestringz[\w-]*?(?=:\{?\n)z�([\w-]*?)(:)(\d+)(?:(\.)(\d+)(?:(\.)(\d+)(?:(\-)((?:[^\W_]|-)*(?:\.(?:[^\W_]|-)*)*))?(?:(\+)((?:[^\W_]|-)+(?:\.(?:[^\W_]|-)+)*))?)?)?(?=:\{?\n)z.*\n)r`rbrarcrdr*N)"r+r,r-r.r/r0r1r2r3rrr8rVrr�Regexrrr9r7r�Wordr�Declarationr�Bin�Oct�Hexr6r5r
�Symbolrr;r<r=r>rrBsp���
�D�
c�C��l�G���I� �!�I��Z� �
����'�
�7�,�,�-�"
�
�+�,�"�#)�<�<��
9�
�t�1�2��F�O�
��J��'�
��V�]�]�#�
�6�=�=�&�)�
����'�
��V�]�]�#�
�6�=�=�&�)�
����'�
���&8�9��+�,��H�M�M�*�
*�G�,?�,?�@��F�J�J�'�
�f�j�j�)�
!�6�:�:�.�
�V�^�^�$�
3�V�\�\�B��;�'�B�CK�M_�
a�
�+�'9�:�
��%��6�=�=�.�1�
�6�=�=�.�1�"�6�=�=�1�`�bj�kq�kx�kx�zB�DJ�DR�DR�T\�^d�^l�^l�nv�x~�xF�xF�HP�RX�Zb�dj�bk�
l�
�d�O�A!
�5<�Fr=rN)r.�pygments.lexerrrrr�pygments.tokenrrr	r
rrr
rrr�__all__rrrr<r=r>�<module>rosU���*B�A�*�*�*�<��F�
�F�RY�j�Y�xH�J�Hr=