B
    ¿Âûbœ  ã               @   sò   d Z ddlZddlmZmZ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 ddlmZmZ ddlmZ ddlmZ ddlmZ d	d
dddgZG dd	„ d	eƒZG dd„ deƒZG dd„ deƒZ G dd„ deƒZ!G dd
„ d
eƒZ"dS )zÎ
    pygments.lexers.webmisc
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for misc. web stuff.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚExtendedRegexLexerÚincludeÚbygroupsÚdefaultÚusing)
ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚLiteralÚ
Whitespace)Ú_indentationÚ_starts_block)Ú	HtmlLexer)ÚJavascriptLexer)Ú	RubyLexerÚ	DuelLexerÚ	SlimLexerÚXQueryLexerÚQmlLexerÚ
CirruLexerc            
   @   s°   e Zd ZdZdZdZdddgZddgZd	d
gZe	j
ZddeejeeƒejƒfdeejejeeejƒfdeejejejƒfdeeeƒeeƒeeƒƒfdeeƒfdeeƒfgiZdS )r   zx
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    
    .. versionadded:: 1.4
    ZDuelzhttp://duelengine.org/ZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/x-jbstÚrootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesÚreÚDOTALLÚflagsr   r   ÚTagr   r   ÚFunctionr   r   r	   Ú	Multiliner   Útokens© r-   r-   ú6lib/python3.7/site-packages/pygments/lexers/webmisc.pyr      s&   

c            l   @   s¬  e Zd ZdZdZdZdddddgZd	d
dddgZddgZg Z	dZ
de
 d Zde
ef ZdZde d Zdeef Zdeef ZeZdeef ZdZdZde d e d Zde d e d ZdZd Zd!ZejejB Zd"d#„ Zd$d%„ Zd&d'„ Z d(d)„ Z!d*d+„ Z"d,d-„ Z#d.d/„ Z$d0d1„ Z%d2d3„ Z&d4d5„ Z'd6d7„ Z(d8d9„ Z)d:d;„ Z*d<d=„ Z+d>d?„ Z,d@dA„ Z-dBdC„ Z.dDdE„ Z/dFdG„ Z0dHdI„ Z1dJdK„ Z2dLdM„ Z3dNdO„ Z4dPdQ„ Z5dRdS„ Z6dTdU„ Z7dVdW„ Z8dXdY„ Z9dZd[„ Z:d\e;fd]e;d^fd_e;d`fdae;fgdbe<fge=dcƒdde#fd]e;defdfe8fdge>dhfdie>dhfdje>dhfdke>dhfdle?j@dhfdme?j@dhfdne>dhfdoefdpefdqeAe>eBe>ƒdrfdseAe>eBe>ƒdtfdueAe>eBe>ƒdtfdve dw eAe>eBeCjDƒdtfdve dw eAe>eBeCjEƒdtfdxe>dtfdyeAeFeBe>ƒdtfdzeGjHd{fd|eAe>eBeGjHƒd{fd}eAe>eBe>eBe>eBeGjHƒd{fd~eFfdeAe>eBe>ƒfd€e>d^fdeAe>eBe>ƒfd‚e>fdƒe>dhfd„eAe>eBe>ƒdhfd…e>d†fd‡e>dhfdˆe?feeCjDfeeCjEfd‰eAe>eBƒdhfg$eeCjDd`feeCjEd`fge=dcƒd]e;defdŠe dw eAe>eBeCjDƒfdŠe dw eAe>eBeCjEƒfeeCjDfeeCjEfd‹eFfdŒe?fdeFdhfeeGjIfg
e=dcƒd]e;defeeCjDdŽfeeCjEdŽfde>dhfde>dŽfd‘eAe>eBe>ƒfd’e>fd‹eFfg	d]e;defeeGjJfd“e dw eAeFeCjDƒfd“e dw eAeFeCjEƒfd”e dw eAeFeBeCjDƒfd”e dw eAeFeBeCjEƒfd•eFfd–eAeBeGjJƒd—fd˜eAeBe>jKeBeGjHƒd{fd™eAeBe>jKeBƒdhfg
d]e;defdše d› eAeGeFƒdœfge=dcƒd]e;defed eGjHdœfeeGjHdœfge=dcƒd]e;defdzeGjHd{fdžeAe>eBeFeBeFƒdœfdŸe4fd eAe>eBeFƒd¡fd¢eAe>eBeFeBeFƒd£fd¤eAeFeBƒd¥fdeFd`fd¦e>d`fdŠe dw eAe>eBeCjDƒdŽfdŠe dw eAe>eBeCjEƒdŽfd§e>dhfd¨e?j@dhfd©e?dhfdªe>dhfd«eAe>eBe>eBe>ƒdhfd¬eAe>eBe>ƒdrfd­eAe>eBe>ƒfd®eAe>eBe>ƒfdve dw eAe>eBeCjDƒdtfdve dw eAe>eBeCjEƒdtfd¯e>dtfdyeAe?eBe>ƒdtfed° e>jLdœfd±eAe>jLeFƒfee>jLd£fgd]e;defd²eFdhfd³e"fd´eGdµfeeGdµfd¶e1fgd]e;defd•eFd`feeGjHfeeCjDfeeCjEfgd]e;defd·e#fd‹eFfdfe6fd¸eFfgd¹e!fdºeMfd»eMfgdbeBd¼fd½eCjNd`feeGfgd½eCjNd`fd»eMfgd¾eCjNd`fd»eMfge=dcƒd¿e fdÀeGjOdÁfdÂeFdÃfdÄeFdÅfdŒe?feeGjOfgdÂeFdÆfdfe8fdÇeGjPfeeGjPfeeGjPfeeGjPfdÈeGjPfgdÄeFdÆfd²eFdhfdÉeGjPfeeGjPfeeGjPfeeGjPfdÈeGjPfgdÊeGjOdËfdfe8fdÌe/fdÍe,fdÎe-fdÏe$feeMfeeMfeeMfdÈeMfg
e=dcƒdÐe feeGjOfge=dcƒd]e;defdÑe>d`fgd]e;defe=dcƒdÒe>d`fge=dcƒd]e;defeeCjDfeeCjEfdÓe>fdeFd`fgeeGjHdÔfgdÕeFdœfd»eMfdÖeBfge=dcƒd]e;defd×e?dœfdØe?dhfeQdœƒge=dcƒeeGjHd`fge=dcƒdfe6fdÙeFdhfgeeGjHdhfgeeGjHdhfge=dcƒd]e;defdÚeRjSdœfdÛeRjSdœfdÜeRjSdœfdÝeRjTdœfdÞeFdœfdßeAe>jKeBe>jKƒdœfdàeAe>jKeBe>jKeBe>jKƒdœfdáeAe>jKeBe>jKeBe>jKƒdœfed° eGdœfdâe eGjOdœfd´eGjOdœfeeCjDdœfeeCjEdœfdãe#fdäeAe>jKeBe>jKeBe>jKƒfdåeAe>jKeBe>jKƒdŽfdæeAe>jKeBe>jKƒdŽfdçeAe>jKeBe>jKeBe>jKƒdèfdéeAe>jUeBe>jUƒdèfdêeAe>jKeBe>jKƒdèfdëeAe>eBeGjHƒd{fd}eAe>eBe>eBe>eBeGjHƒd{fdzeGjHd{fdìeAe>jKeBe>jKeBeGjHƒd{fdíeAe>jKeBeGjJƒd—fdîeAe?eBe>ƒdtfdïe3fdðe2fdÌe0fdÍe+fdÎe.fdÏe5fdñeAe>jKeBe>jKƒdòfdóe*fdôe)fdõeAe>eBeFƒfdöeAe>eBeFƒfd÷e7fdøe7fdùe dw eAe>eBƒdúfdûe dw eAe>eBƒdüfdýe dþ eAe>eBeGjHeBeFƒdœfdÿeAe>jKeBe>jKƒfd e6fde'fde(fdeAe>jKeBe>jKƒdfdeAe>jUeBe>jUƒdfdeAeFeBƒd¥fde>fd	eAe>jKeBe>jKƒd
fdŠe dw eCjDdŽfdŠe dw eCjEdŽfdeAe>eFƒfdeAe>eFƒfdeAe>eBeFƒfd¦e>fdeAe>eBe>ƒfd‡e>fdeAe>eBƒdhfdeAe>eBeFeGjHƒd{fde dw eGjPdœfde dw eGjPdœfde eGjPdœfdeGjPdœfdeGjPdœfdeFfed eGjOdfed eGjVdfdše d eAeGjVe>jLeRjTƒfeeGjOdœfgIdœ!ZWdS (  r   z…
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ZXQueryzhttps://www.w3.org/XML/Query/ZxqueryZxqyZxqZxqlZxqmz*.xqyz*.xqueryz*.xqz*.xqlz*.xqmztext/xqueryzapplication/xqueryz(?:[A-Z]|_|[a-z])z(?:z|-|\.|[0-9])z
(?:%s+%s*)z(?:[A-KN-WYZ]|_|:|[a-kn-wyz])z%s+%s*z%s:%sz	(?:%s|%s)z"(?:&(?:lt|gt|amp|quot|apos|nbsp);)z(?:&#[0-9]+;|&#x[0-9a-fA-F]+;)z(?:"(?:ú|z|""|[^&"])*")z(?:'(?:z|''|[^&'])*')z1[A-Za-z]|\s|\d|[!"#$%()*+,\-./:;=?@\[\\\]^_\'`|~]z0[A-Za-z]|\s|\d|[!#$%()*+,\-./:;=?@\[\\\]^_\'`|~]z/[A-Za-z]|\s|\d|[!"#$%()*+,\-./:;=?@\[\\\]^_`|~]c             c   s,   |  ¡ t| d¡fV  dg|_| ¡ |_d S )Né   r   )Ústartr   ÚgroupÚstackÚendÚpos)ÚlexerÚmatchÚctxr-   r-   r.   Úpunctuation_root_callbackt   s    z%XQueryLexer.punctuation_root_callbackc             c   s,   |  ¡ t| d¡fV  dg|_| ¡ |_d S )Nr0   r   )r1   r
   r2   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Úoperator_root_callbackz   s    z"XQueryLexer.operator_root_callbackc             c   s>   |  ¡ tj| d¡fV  | jr0|j | j ¡ ¡ | ¡ |_	d S )Nr0   )
r1   r   r)   r2   Úxquery_parse_stater3   ÚappendÚpopr4   r5   )r6   r7   r8   r-   r-   r.   Úpopstate_tag_callback€   s    z!XQueryLexer.popstate_tag_callbackc             c   s8   |  ¡ tj| d¡fV  |j | j ¡ ¡ | ¡ |_	d S )Nr0   )
r1   r   ÚDocr2   r3   r<   r;   r=   r4   r5   )r6   r7   r8   r-   r-   r.   Úpopstate_xmlcomment_callback†   s    z(XQueryLexer.popstate_xmlcomment_callbackc             c   sž   |  ¡ t| d¡fV  | j ¡ }|dkr‚t d| d¡¡rh|  ¡ t| d¡fV  |j d¡ | 	¡ |_
qš|j d¡ | 	d¡|_
n|j |¡ | 	d¡|_
d S )Nr0   Úoccurrenceindicatorz[?*+]+é   Úoperator)r1   r   r2   r;   r=   r&   r7   r3   r<   r4   r5   )r6   r7   r8   Z
next_stater-   r-   r.   Úpopstate_kindtest_callback‹   s    
z&XQueryLexer.popstate_kindtest_callbackc             c   sv   |  ¡ t| d¡fV  t| jƒdkr>|j ¡  |jshdg|_n*t|jƒdkr`|j | j ¡ ¡ ndg|_| ¡ |_	d S )Nr0   r   r   )
r1   r   r2   Úlenr;   r3   r=   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Úpopstate_callbackš   s    

zXQueryLexer.popstate_callbackc             c   s>   |  ¡ tj| d¡fV  | j d¡ |j d¡ | ¡ |_d S )Nr0   Úelement_contentÚ	start_tag)	r1   r   r)   r2   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú+pushstate_element_content_starttag_callbackª   s    z7XQueryLexer.pushstate_element_content_starttag_callbackc             c   sB   |  ¡ tj| d¡fV  |j d¡ | j |jj¡ | 	¡ |_
d S )Nr0   Úcdata_section)r1   r   r?   r2   r3   r<   r;   Ústater=   r4   r5   )r6   r7   r8   r-   r-   r.   Ú pushstate_cdata_section_callback°   s    z,XQueryLexer.pushstate_cdata_section_callbackc             c   sB   |  ¡ tj| d¡fV  | j |jj¡ |j d¡ | 	¡ |_
d S )Nr0   rH   )r1   r   r)   r2   r;   r<   rK   r=   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Úpushstate_starttag_callback¶   s    z'XQueryLexer.pushstate_starttag_callbackc             c   sd   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_	d S )Nr0   rB   é   r   rC   )
r1   r   r2   r   r   r3   r;   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Ú!pushstate_operator_order_callback¼   s    z-XQueryLexer.pushstate_operator_order_callbackc             c   sd   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_	d S )Nr0   rB   rN   r   rC   )
r1   r   r2   r   r   r3   r;   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Úpushstate_operator_map_callbackÄ   s    z+XQueryLexer.pushstate_operator_map_callbackc             c   sd   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_	d S )Nr0   rB   rN   r   rC   )
r1   r   r2   r   r   r3   r;   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Ú pushstate_operator_root_validateÌ   s    z,XQueryLexer.pushstate_operator_root_validatec             c   sd   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_d S )Nr0   rB   rN   r   rC   )	r1   r   r2   r   r3   r;   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Ú)pushstate_operator_root_validate_withmodeÔ   s    z5XQueryLexer.pushstate_operator_root_validate_withmodec             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   Úprocessing_instructionrC   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú2pushstate_operator_processing_instruction_callbackÜ   s    z>XQueryLexer.pushstate_operator_processing_instruction_callbackc             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   rS   rG   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú9pushstate_element_content_processing_instruction_callbackâ   s    zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   rJ   rG   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú0pushstate_element_content_cdata_section_callbackè   s    z<XQueryLexer.pushstate_element_content_cdata_section_callbackc             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   rJ   rC   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú)pushstate_operator_cdata_section_callbackî   s    z5XQueryLexer.pushstate_operator_cdata_section_callbackc             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   Úxml_commentrG   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú-pushstate_element_content_xmlcomment_callbackô   s    z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc             c   s>   |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr0   rX   rC   )	r1   r   r?   r2   r3   r<   r;   r4   r5   )r6   r7   r8   r-   r-   r.   Ú&pushstate_operator_xmlcomment_callbackú   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc             c   sh   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | ¡ |_	d S )Nr0   rB   rN   Úkindtest)
r1   r   r2   r   r   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Úpushstate_kindtest_callback   s    z'XQueryLexer.pushstate_kindtest_callbackc             c   sh   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | ¡ |_	d S )Nr0   rB   rN   rC   Úkindtestforpi)
r1   r   r2   r   r   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú)pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc             c   sh   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | ¡ |_	d S )Nr0   rB   rN   rC   r[   )
r1   r   r2   r   r   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú$pushstate_operator_kindtest_callback  s    z0XQueryLexer.pushstate_operator_kindtest_callbackc             c   sj   |  ¡ tj| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | 	¡ |_
d S )Nr0   rB   rN   rA   r[   )r1   r   r)   r2   r   r   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú/pushstate_occurrenceindicator_kindtest_callback  s    z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc             c   s>   |  ¡ tj| d¡fV  | j d¡ |j d¡ | ¡ |_d S )Nr0   rC   rH   )	r1   r   r)   r2   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú$pushstate_operator_starttag_callback   s    z0XQueryLexer.pushstate_operator_starttag_callbackc             c   s8   |  ¡ t| d¡fV  | j d¡ dg|_| ¡ |_d S )Nr0   rC   r   )r1   r   r2   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú pushstate_operator_root_callback&  s    z,XQueryLexer.pushstate_operator_root_callbackc             c   sd   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ dg|_| ¡ |_	d S )Nr0   rB   rN   rC   r   )
r1   r   r2   r   r   r;   r<   r3   r4   r5   )r6   r7   r8   r-   r-   r.   Ú*pushstate_operator_root_construct_callback,  s    z6XQueryLexer.pushstate_operator_root_construct_callbackc             c   sB   |  ¡ t| d¡fV  |j ¡ }| j |¡ dg|_| ¡ |_d S )Nr0   r   )	r1   r   r2   r3   r=   r;   r<   r4   r5   )r6   r7   r8   Z	cur_stater-   r-   r.   Úpushstate_root_callback4  s
    
z#XQueryLexer.pushstate_root_callbackc             c   s2   |  ¡ tj| d¡fV  |j d¡ | ¡ |_d S )Nr0   rC   )r1   r   Ú	Attributer2   r3   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Ú%pushstate_operator_attribute_callback;  s    z1XQueryLexer.pushstate_operator_attribute_callbackc             c   s\   |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ | ¡ |_d S )Nr0   rB   rN   rC   )	r1   r   r2   r   r   r;   r<   r4   r5   )r6   r7   r8   r-   r-   r.   Úpushstate_operator_callback@  s
    z'XQueryLexer.pushstate_operator_callbackz[^:()]+z\(:z#pushz:\)z#popz[:()]z\s+Ú
whitespacez(\})Úcommentz(\{)z then|else|external|at|div|exceptr   zorder byzgroup byz%is|mod|order\s+by|stable\s+order\s+byzand|orz+(eq|ge|gt|le|lt|ne|idiv|intersect|in)(?=\b)z6return|satisfies|to|union|where|count|preserve\s+stripz+(>=|>>|>|<=|<<|<|-|\*|!=|\+|\|\||\||:=|=|!)z(::|:|;|\[|//|/|,)z(castable|cast)(\s+)(as)\bÚ
singletypez(instance)(\s+)(of)\bÚitemtypez(treat)(\s+)(as)\bz(case)(\s+)(ú)z(case|as)\bz(\))(\s*)(as)z\$Úvarnamez (for|let|previous|next)(\s+)(\$)z2(for)(\s+)(tumbling|sliding)(\s+)(window)(\s+)(\$)z\)|\?|\]z(empty)(\s+)(greatest|least)zascending|descending|defaultz(allowing)(\s+)(empty)Zexternalz(start|when|end)z(only)(\s+)(end)Z	collationÚuritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)z
(at)(\s+)(ú,ú=ú;Únamespacedeclzinherit|no-inheritÚ	namespacez(default)(\s+)(element)zpreserve|no-preservez(\()(z
(\,)(\s+)(z\)z	(\s+)(\%)Úannotationnamez(\s+)(variable)(\s+)(\$)z(\s+)(function)(\s+)ú(z)(\()?rC   z(:\*)z(void)(\s*)(\()(\s*)(\))zr(element|attribute|schema-element|schema-attribute|comment|text|node|binary|document-node|empty-sequence)(\s*)(\()z!(processing-instruction)(\s*)(\())rA   r]   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rA   z(\(\#)(\s*)Úpragmaz	then|elsez<except|intersect|in|is|return|satisfies|to|union|where|countz%and|div|eq|ge|gt|le|lt|ne|idiv|mod|orz):=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|zexternal|atz(stable)(\s+)(order)(\s+)(by)z(castable|cast)(\s+)(as)z(treat)(\s+)(as)z(instance)(\s+)(of)zcase|asz:\*z(function|map|array)(\()z\{z(\))([*+?]?)z\*Úclosekindtestz!(element|schema-element)(\s*)(\()z(\))z\?z(-->)z	[^-]{1,2}z@\t|\r|\n|[\u0020-\uD7FF]|[\uE000-\uFFFD]|[\U00010000-\U0010FFFF]Úprocessing_instruction_contentz\?>z]]>z(/>)ú>rG   ú"Úquot_attribute_contentú'Úapos_attribute_contentrH   z""z	\{\{|\}\}z''z</Úend_tagz(<!--)z(<\?)z(<!\[CDATA\[)z(<)z(>)zpreserve|stripzordered|unorderedÚencodingÚpragmacontentsz#\)z(\s+)z\*|\?|\+z:=z(\()z\d+(\.\d*)?[eE][+-]?\d+z(\.\d+)[eE][+-]?\d+z(\.\d+|\d+\.\d*)z(\d+)z(\.\.|\.|\))z(declare)(\s+)(construction)z#(declare)(\s+)(default)(\s+)(order)z"(declare)(\s+)(context)(\s+)(item)z\*:z(\}|\])z'(declare)(\s+)(default)(\s+)(collation)z (module|declare)(\s+)(namespace)z(declare)(\s+)(base-uri)z.(declare)(\s+)(default)(\s+)(element|function)Únamespacekeywordz(import)(\s+)(schema|module)z(declare)(\s+)(copy-namespaces)z(for|let|some|every)(\s+)(\$)z!(declare)(\s+)(variable)(\s+)(\$)z(declare)(\s+)(\%)z(\))(\s+)(as)zk(element|attribute|schema-element|schema-attribute|comment|text|node|document-node|empty-sequence)(\s+)(\()z!(processing-instruction)(\s+)(\()z(declare)(\s+)(boundary-space)Úxmlspace_declz(validate)(\s+)(lax|strict)z(validate)(\s*)(\{)z(typeswitch)(\s*)(\()z(switch)(\s*)(\()z&(element|attribute|namespace)(\s*)(\{)z7(document|text|processing-instruction|comment)(\s*)(\{)z(attribute)(\s+)(?=Úattribute_qnamez(element)(\s+)(?=Úelement_qnamez((processing-instruction|namespace)(\s+)(z
)(\s*)(\{)z(declare|define)(\s+)(function)z(\{|\[)z(unordered|ordered)(\s*)(\{)z(map|array)(\s*)(\{)z(declare)(\s+)(ordering)Údeclareorderingz(xquery)(\s+)(version)Úxqueryversionz
(\(#)(\s*)Úreturnz(declare)(\s+)(option)ÚoptionzB(ancestor-or-self|ancestor|attribute|child|descendant-or-self)(::)zT(descendant|following-sibling|following|parent|preceding-sibling|preceding|self)(::)z(if)(\s*)(\()z1(update)(\s*)(insert|delete|replace|value|rename)z
(try)(\s*)z(catch)(\s*)(\()(\$)z(@z@\*:z@\*z(@)z//|/|\+|-|;|,|\(|\)z	(?=\s*\{)Úqname_brarenz(?=\s*\([^:])z)(#)([0-9]+))!ri   rh   rC   rn   rr   r   rt   rm   rj   rk   r[   r]   rw   rX   rS   rx   rJ   rH   r{   r}   rG   r~   r‚   r…   r†   rv   r€   rA   rˆ   r‰   r„   rƒ   r   N)Xr   r   r   r    r!   r"   r#   r$   r%   r;   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameZqnameZ	entityrefZcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr&   r'   Ú	MULTILINEr(   r9   r:   r>   r@   rD   rF   rI   rL   rM   rO   rP   rQ   rR   rT   rU   rV   rW   rY   rZ   r\   r^   r_   r`   ra   rb   rc   rd   rf   rg   r	   r   r   r   r
   ZWordr   r   r   ÚDoubleÚSingler   r   ÚVariableÚ	NamespaceZ	DecoratorÚDeclarationZTyper   r?   r)   re   r   r   ÚFloatÚIntegerZPseudor*   r,   r-   r-   r-   r.   r   :   s  	












































c               @   s  e Zd ZdZdZdZddgZddgZdd	gZe	j
e	jB Zd
ef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dfedƒdedfdedfdefdejdfdedfdedfdejd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j!fd$ej"fd%ejfgd&œZ#d'S )(r   z3
    For QML files.

    .. versionadded:: 1.6
    ZQMLz+https://doc.qt.io/qt-6/qmlapplications.htmlZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlz\s+z<!--z//.*?\nz	/\*.*?\*/Úcommentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)z#popz(?=/))z#popÚbadregexz\nz^(?=\s|/|<!--)Úslashstartsregexz@\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|(<<|>>>?|==?|!=?|[-<>+*%&|^/])=?z[{(\[;,]z[})\].]z\bid\s*:\s*[A-Za-z][\w.]*z\b[A-Za-z][\w.]*\s*:z„(for|in|while|do|break|return|continue|switch|case|default|if|else|throw|try|catch|finally|new|delete|typeof|instanceof|void|this)\bz(var|let|with|function)\bzæ(abstract|boolean|byte|char|class|const|debugger|double|enum|export|extends|final|float|goto|implements|import|int|interface|long|native|package|private|protected|public|short|static|super|synchronized|throws|transient|volatile)\bz*(true|false|null|NaN|Infinity|undefined)\bzÙ(Array|Boolean|Date|Error|Function|Math|netscape|Number|Object|Packages|RegExp|String|sun|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|Error|eval|isFinite|isNaN|parseFloat|parseInt|document|this|window)\bz[$a-zA-Z_]\w*z%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-fA-F]+z[0-9]+z"(\\\\|\\[^\\]|[^"\\])*"z'(\\\\|\\[^\\]|[^'\\])*')r’   r”   r“   r   N)$r   r   r   r    r!   r"   r#   r$   r%   r&   r'   rŠ   r(   r   r	   rŒ   r+   r   r   ZRegexr   r
   r   r   r   ZReservedZConstantr   ZBuiltinZOtherr   r   ZHexr‘   r‹   r,   r-   r-   r-   r.   r     sP   


c               @   sæ   e Zd ZdZdZdZdgZdgZdgZe	j
Zdefdejd	fd
edfgdejdfgdedfdejdfdedfdedfdedfd
edfdejfgdedfdedfdefdedfd
edfdejfdefdejfgdejfedƒgdœZdS )r   a  
    * using ``()`` for expressions, but restricted in a same line
    * using ``""`` for strings, with ``\`` for escaping chars
    * using ``$`` as folding operator
    * using ``,`` as unfolding operator
    * using indentations for nested blocks

    .. versionadded:: 2.0
    ZCirruzhttp://cirru.org/Zcirruz*.cirruztext/x-cirruz	[^"\\\n]+z\\Úescaperz   z#popÚ.z\,z	[^\s"()]+z\)z(?=\n)z\(z#push)z#popÚstringz[ ]+z(?<!\w)\$(?!\w)Úfunctionz\nr—   z[+-]?[\d.]+\bz^\n+)Úliner˜   )r—   r•   r˜   r™   r   N)r   r   r   r    r!   r"   r#   r$   r%   r&   rŠ   r(   r   ZEscaper
   r   r*   r   r   r   r   r   r,   r-   r-   r-   r.   r   c  s8   	




c               @   s^  e Zd ZdZdZdgZdgZdgZej	Z
dZdefdefgd	ejd
fdejd
fgdeeeeƒƒdfdejdfedƒgedƒdedfdeeeeƒƒdfde d eedƒdfde d eejdƒdfdejd
fedƒgedƒdefdedfedƒgdefdeejeeƒejƒfd edfgd!efd"eeƒd
fd#eeƒd
fd$ed
fged% ejfd edfgd&œZd'S )(r   z5
    For Slim markup.

    .. versionadded:: 2.0
    ZSlimZslimz*.slimztext/x-slimz(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+Útagz	\#[\w:-]+z([ \t]*==?)(.*\n)r   z[ \t]+[\w:-]+(?==)zhtml-attributesÚplainÚcssz[\w:-]+:[ \t]*\nz	(-)(.*\n)z#popz\|z*\nú/zslim-comment-blockz[\w:-]+zeval-or-plainz[<>]{1,2}(?=[ \t=])z[ \t]+\nz#pop:2z([^#\n]|#[^{\n]|(\\\\)*\\#\{)+z(#\{)(.*?)(\})z\nrp   z"[^"]+"z
\'[^\']+\'z\w+ú+)r   rœ   zeval-or-plainZcontentrš   r›   zhtml-attributeszslim-comment-blockN)r   r   r   r    r!   r#   r$   r%   r&   Ú
IGNORECASEr(   Z_dotr   r   r   ZClassr*   r   r   r   r   re   r   r   r   r	   ZPreprocr)   r   ZInterpolr,   r-   r-   r-   r.   r   ˜  sN   




)#r    r&   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   r   Zpygments.lexers.cssr   r   Zpygments.lexers.htmlr   Zpygments.lexers.javascriptr   Zpygments.lexers.rubyr   Ú__all__r   r   r   r   r   r-   r-   r-   r.   Ú<module>	   s$    0      dJ5