online
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Â599_‘I|¥‰ÓMdœv ©ƒ†ü+=ÂÁ W    ‹      Õ–moÚ0Çß÷Sx~±wp¤”®ÁSG*•¢LÓ4M•‰±šØ‘m`ôÓÏÁi›N Q­­ÚWw—üsw?ÇOá‡hÐÿž£¯ãË~ûÒëv®|ov ¢qä_ÔÀy#œX›Ÿ ,—Ëú²YWzã$6KÀX-b[g–a²ÏÈ
N™³(´Â¦œt%ã¿‘š"Pskãî»•Æ"æ¦ð-Ï ã™Ò«ÒƒTŒ7Ê(h¶ÅÍf>µ+eµp¢Øªh"x™‚.ï‰NÖuW“Ð&hAS1“mlUŽI(²2:nc±’&)•7õ™˜bDSÛÆ?»�Á/§›_“�¢Dóiî´û§ƒv„IŸf<ºYsé4g˜ô¨±(SLLg[ÅW^|%n·'Œ¼&â&Ö"·BÉ)8Ä*j¬R“SÇÚr‰®ª¼„ýk4hüh0†g£óþ8êŽü�°"ÅCwÿÿû0RÍ¥E‘Ð<¶î]	ç+}”“ŸÞ…¨l]‹Yb1A¨†6*ŸÀ;U)ãºJ¼�õ®_o«]þÕÖ~cÿ°µàŸN‡½`ÿsy#ÕRVÜtØ d*$ÇÄÛ ö(8:i¶¶¸-èâòde®ý$Ã¤¼WQì‚%ÉÚ+ »/Š\-¹v‹ÂÛçèÿ•…vûÑ¢810¹wßÊox†±Ô:„µÙ¹ýàè�Ì"3Ÿ”g†C¸÷ßá;çw–aâís ¼ò<*±ë[%¹Á¤¼ü’Øñåõ.„õm2¥ýYu¼¶5    C   ˆl–Ým_J *eJe@=q–®4Ê˜´o�þYp.,Ü¡±µ œ)üÿÅ„/4çÄ_ŠI|¥�+Wé3ž¯ÄÃ 6    """
    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.
"""

from pygments.lexer import RegexLexer, default, include, bygroups
from pygments.token import Comment, Keyword, Literal, Name, Number, Operator, \
    Punctuation, String, Text, Whitespace

__all__ = ['SNBTLexer', 'MCFunctionLexer', 'MCSchemaLexer']


class SNBTLexer(RegexLexer):
    """Lexer for stringified NBT, a data format used in Minecraft

    .. versionadded:: 2.12.0
    """

    name = "SNBT"
    url = "https://minecraft.fandom.com/wiki/NBT_format"
    aliases = ["snbt"]
    filenames = ["*.snbt"]
    mimetypes = ["text/snbt"]

    tokens = {
        "root": [
            # We only look for the open bracket here since square bracket
            #  is only valid in NBT pathing (which is a mcfunction idea).
            (r"\{", Punctuation, "compound"),
            (r"[^\{]+", Text),
        ],

        "whitespace": [
            (r"\s+", Whitespace),
        ],

        "operators": [
            (r"[,:;]", Punctuation),
        ],

        "literals": [
            (r"(true|false)", Keyword.Constant),
            (r"-?\d+[eE]-?\d+", Number.Float),
            (r"-?\d*\.\d+[fFdD]?", Number.Float),
            (r"-?\d+[bBsSlLfFdD]?", Number.Integer),

            # Separate states for both types of strings so they don't entangle
            (r'"', String.Double, "literals.string_double"),
            (r"'", String.Single, "literals.string_single"),
        ],
        "literals.string_double": [
            (r"\\.", String.Escape),
            (r'[^\\"\n]+', String.Double),
            (r'"', String.Double, "#pop"),
        ],
        "literals.string_single": [
            (r"\\.", String.Escape),
            (r"[^\\'\n]+", String.Single),
            (r"'", String.Single, "#pop"),
        ],

        "compound": [
            # this handles the unquoted snbt keys
            #  note: stringified keys still work
            (r"[A-Z_a-z]+", Name.Attribute),
            include("operators"),
            include("whitespace"),
            include("literals"),
            (r"\{", Punctuation, "#push"),
            (r"\[", Punctuation, "list"),
            (r"\}", Punctuation, "#pop"),
        ],

        "list": [
            (r"[A-Z_a-z]+", Name.Attribute),
            include("literals"),
            include("operators"),
            include("whitespace"),
            (r"\[", Punctuation, "#push"),
            (r"\{", Punctuation, "compound"),
            (r"\]", Punctuation, "#pop"),
        ],
    }


class MCFunctionLexer(RegexLexer):
    """Lexer for the m