
    L&i6                         d Z ddlmZmZmZmZ ddlmZmZm	Z	m
Z
mZmZmZmZmZmZ g dZ G d de          Z G d de          Z G d	 d
e          ZdS )a9  
    pygments.lexers.minecraft
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Minecraft related languages.
    
    SNBT. A data communication format used in Minecraft.
    wiki: https://minecraft.fandom.com/wiki/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.fandom.com/wiki/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-2022 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                      e Zd ZdZdZdZdgZdgZdgZde	dfd	e
fgd
efgde	fgdej        fdej        fdej        fdej        fdej        dfdej        dfgdej        fdej        fdej        dfgdej        fdej        fdej        dfgdej        f ed           ed           ed          de	dfde	dfde	dfgdej        f ed           ed           ed          de	dfde	dfd e	dfgd!Zd"S )#r   z]Lexer for stringified NBT, a data format used in Minecraft

    .. versionadded:: 2.12.0
    SNBTz,https://minecraft.fandom.com/wiki/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%   r   r   r   r'   N)__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesr   r   r   r   Constantr   FloatIntegerr   DoubleSingleEscaper
   	Attributer   tokens     f/home/geonatureadmin/si_en_reseau/tutos/venv/lib/python3.11/site-packages/pygments/lexers/minecraft.pyr   r      s        
 D
8ChG
II K,	
 Z 

 {#

 g./-!6<0"FN3 6=":;6=":;	
 V]#6=)6=&)#
 V]#6=)6=&)#
 DN+GK  GL!!GJK)K(K(

 DN+GJGK  GL!!K)K,K(
c: :FFFr=   r   c                      e Zd ZdZdZdZddgZdgZdgZdZ	i d	 e
d
           e
d           e
d           e
d           e
d           e
d           e
d          gd
d eeej                  fdej        fdej        f e
d          dej        fdej        j        fgddej        fdej        fgddefgdde	 dej        dfdej        fgdde	 ej        d fdej        d!f ed"          gd! e
d#          d$ej        fd%ed"f e
d          gd  e
d#          d$ej        fd%ed"f e
d          gd#d&ej        f e
d          dej        j        fgdd'efgdd(efd)ej        fd*ej        j        fd+e j!        fd,e j"        fd-e j#        fd.ej$        d/fd0ej        d1fgd/d2ej%        fd3ej$        fd.ej$        d"fgd1d2ej%        fd4ej        fd0ej        d"fgdd5ej        fgdd6e&d7fd8e&d9fgd: e
d           e
d          d;e&d"fgd< e
d           e
d          d=e&d"fd>e&fg e
d          d?ej'        d@fdAej'        d@fdBej'        d@fd.ej'        d@d/fd0ej'        d@d1fdCe j#        d@f ed"          gd2ej%        fd3ej'        fd.ej'        d"fgd2ej%        fd4ej'        fd0ej'        d"fg e
d          dDe&dEfd>e&f ed"          g e
d          dFej(        fdAej(        f e
d           e
d           ed"          gdGZ)dHS )Ir   zLexer 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.fandom.com/wiki/Commands
mcfunctionmcfz*.mcfunctionztext/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_\.\-\/]+r   z^\s*(#))comments.blockcomments.block.emphasizedz#.*$rH   z^\s*#rI   zcomments.block.normalr!   zcomments.block.specialz\S+\nz@\S+z[\-~%^?!+*<>\\/|&=.]z\.\.r   z
[A-Za-z_]+z[0-7]bz%[+-]?\d*\.?\d+([eE]?[+-]?\d+)?[df]?\bz
[+-]?\d+\br   zliterals.string-doubler   zliterals.string-singler   r    r"   z@[a-z]r   )property.curlyproperty.keyr&   )property.squarerL   rK   r(   rM   r)   ,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_\.\-/]+)rL   zproperty.key.string-doublezproperty.key.string-singlerO   rP   N)*r+   r,   r-   r.   r/   r0   r1   r2   r3   _block_comment_prefixr   r   r   r
   BuiltinVariabler   r4   MagicFunctionr   	Multiliner8   r   r   r   Doc	Decoratorr   r	   PseudoClassr   Byter5   r6   r7   r9   r   r:   Tagr;   r<   r=   r>   r   r   f   s         D
6CU#G I"#I #IGGGJGJGL!!GJGK  GK  
I 	  *dl!C!CD"DL1 5dmDGO$$ #G$45 34
I6 	/? 3DMB
7IF 	Z 
GIN 	/,///1B<>gn%
OIX 	-+--w/@(*w(*ABGFOO	
YId 	 G,--W&'D&!GL!!	"
eIp 	$G,--VZ D&!GL!!	&
qI| 	!dn%GO$$  34#
}IP 	$h/
QIX 	ggn- DM/0$5v|DFN+6=":;6=":;
YIr 	!V]#6=)6=&)#
sI| 	!V]#6=)6=&)#
}IH 	&
II@ 	 K!CDK!DE
AIR 	GL!!GJK(
SI\ 	GL!!GJK( ;
]In GL!!
 >t~Ocd'9MN 0DE 4>#79QR4>#79QR v~';<GFOO'
, V]#4>*4>6*'
 V]#4>*4>6*'
 GL!!%56;GFOO
 GL!! 5dh?'2GJGJGFOO
{I I IFFFr=   r   c            #       H   e Zd ZdZdZdZdgZdgZdgZde	fde
j        fd	e
j        fg ed
          dej        dfdedf ed          gde	dfgdej        fdej        dfdej        fgdej        fdej        dfdej        fgdedf ed
          dej        fdej        fdej        fdej        fdej        fdej        fdej        fdefdedfd edfd!efdej        d"fdej        d#fd$ej        fd% e ej        eej        eej        eej        eeee          fd&efgd'Z!d(S ))r   z~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/mcschemar   z//.*?$z	/\*.*?\*/commentsandwhitespacez7/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gimuysd]+\b|\B)r!   z(?=/))r!   badregexrJ   r   r   z[^\\']+r   z[^\\"]+z^(?=\s|/|<!--)slashstartsregexz
(?<=: )optz(?<=\s)[\w-]*(?=(\s+"|\n))z
0[bB][01]+z0[oO]?[0-7]+z0[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`   rb   ra   rc   rd   r*   N)"r+   r,   r-   r.   r/   r0   r1   r2   r3   r   r   r8   rV   r   r   Regexr   r   r9   r7   r   Wordr   Declarationr   BinOctHexr6   r5   r   Symbolr   r;   r<   r=   r>   r   r   B  s^        
 D
cClGI !I Z '7,-"
 G+,,"#)<9t12GFOO
 J'
 V]#6=&)'
 V]#6=&)'
 &89G+,, HM**G,?@ FJ'fj)!6:.V^$3V\B ;'BCKM_a+'9:% 6=.16=.1 "6=1 `  bj  bj  kq  kx  zB  DJ  DR  T\  ^d  ^l  nv  x~  xF  HP  RX  Zb  dj  bk  bk  ldOA!
5< <FFFr=   r   N)r.   pygments.lexerr   r   r   r   pygments.tokenr   r   r	   r
   r   r   r   r   r   r   __all__r   r   r   r<   r=   r>   <module>ro      s_   * B A A A A A A A A A A A* * * * * * * * * * * * * * * * * * * * * * * * <
;
;F F F F F
 F F FRY Y Y Y Yj Y Y YxH H H H HJ H H H H Hr=   