U
    luf-  ã                   @   sf   d Z ddl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 dgZG dd„ deƒZdS )zâ
    pygments.lexers.blueprint
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for the Blueprint UI markup language.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚincludeÚbygroupsÚwords)ÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚBlueprintLexerc                   @   sÐ  e Zd ZdZdZdgZdgZdgZdZe	j
Zedƒgdejfd	eejeeeejƒfgd
efdejfdejdfgdejdfdejfdejfgdeeeeƒdfedƒejfdejfdefdejfdejfdejfdejfdefg	edƒedƒdedfgedƒedƒefd eej j!eeƒd!fd"eeeeƒdfd#eej eeƒd!fd$eejejeeeejeejeeƒ
d%fed&ƒd'efgd(eeeejeejeƒfd)eeeejeeƒd%fd*eeeeƒd%fd+eeeeƒd,fd-ej"d-fd.eeeeƒd/fd0eeeeƒd%fd1eeeeƒd!fd2ed3fd4eej#eeƒd5fed6ƒgedƒd7edfged6ƒd7edfgedƒd8edfgedƒd9edfged6ƒd:edfgedƒd;eeeej$eeeƒfed<ƒefdej%fed&ƒd=efd8edfgedƒedƒd>efd?ed@fgdAœZ&dBS )Cr   z>
    For Blueprint UI markup.

    .. versionadded:: 2.16
    Z	BlueprintZ	blueprintz*.blpztext/x-blueprintz4https://gitlab.gnome.org/jwestman/blueprint-compilerúblock-contentz\$\s*[a-z_][a-z0-9_\-]*z;(?:([a-z_][a-z0-9_\-]*)(\s*)(\.)(\s*))?([a-z_][a-z0-9_\-]*)z\s+z//.*?\nz/\*úcomment-multilinez\*/ú#popz[^*]+z\*z(typeof)(\s*)(<)Útypeof)ÚtrueÚfalseÚnullz[a-z_][a-z0-9_\-]*z\|z".*?"z\'.*?\'z0x[\d_]*z[0-9_]+z\d[\d\.a-z_]*Ú
whitespaceÚtypeú>)ÚafterÚbidirectionalzbind-propertyÚbindÚdefaultZdestructiveÚdisabledÚinvertedzno-sync-createZ	suggestedZswappedzsync-createÚtemplatez(C?_)(\s*)(\()úparen-contentz(as)(\s*)(<)z (\$?[a-z_][a-z0-9_\-]*)(\s*)(\()z€(?:(\$\s*[a-z_][a-z0-9_\-]+)|(?:([a-z_][a-z0-9_\-]*)(\s*)(\.)(\s*))?([a-z_][a-z0-9_\-]*))(?:(\s+)([a-z_][a-z0-9_\-]*))?(\s*)(\{)úbrace-blockÚvaluez,|\.z3(using)(\s+)([a-z_][a-z0-9_\-]*)(\s+)(\d[\d\.]*)(;)z=(menu|section|submenu)(?:(\s+)([a-z_][a-z0-9_\-]*))?(\s*)(\{)z(item)(\s*)(\{)z(item)(\s*)(\()úparen-blockr   zT(responses|items|mime-types|patterns|suffixes|marks|widgets|strings|styles)(\s*)(\[)úbracket-blockz,(accessibility|setters|layout|item)(\s*)(\{)z(condition|mark|item)(\s*)(\()z\[ú
child-typez0([a-z_][a-z0-9_\-]*(?:::[a-z0-9_]+)?)(\s*)(:|=>)Ú	statementÚcontentz\)z\]z\}ú;z$(action)(\s+)(response)(\s*)(=)(\s*))r   zinternal-childÚresponseú=ú:z\{)r   r!   )Úrootr   r   r   r"   r   r'   r   r#   r    r$   r!   r&   r%   r   N)'Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚurlÚreÚ
IGNORECASEÚflagsr   r	   ZClassr   Ú	Namespacer   r   r   ÚSingleZ	Multiliner   r   ÚConstantÚVariabler   r
   ÚDoubler   ZHexZIntegerZFunctionZBuiltinZDeclarationZPropertyÚ	AttributeZ	DecoratorÚtokens© r@   r@   ú=/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/blueprint.pyr      s  ÿÿþ
ý
ý÷ýýþþ    ÿýè ÿÿþ
þ
þ

þ
þ
þþà#þþþþþ ÿÿ
÷ü‚)r0   r6   Zpygments.lexerr   r   r   r   Zpygments.tokenr   r   r   r	   r
   r   r   r   Ú__all__r   r@   r@   r@   rA   Ú<module>   s
   
(