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 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-2021 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)Ú_indentationÚ_starts_block)Ú	HtmlLexer)ÚJavascriptLexer)Ú	RubyLexerÚ	DuelLexerÚ	SlimLexerÚXQueryLexerÚQmlLexerÚ
CirruLexerc            
   @   s¬   e 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   zµ
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    See http://duelengine.org/.
    See http://jsonml.org/jbst/.

    .. versionadded:: 1.4
    ZDuelZ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ÚaliasesÚ	filenamesÚ	mimetypesÚreÚDOTALLÚflagsr   r   ÚTagr   r   ÚFunctionr   r   r	   Ú	Multiliner   Útokens© r+   r+   ú_/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pygments/lexers/webmisc.pyr      s$   

c            l   @   s®  e 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 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$d/d0„ Z%d1d2„ Z&d3d4„ Z'd5d6„ Z(d7d8„ Z)d9d:„ Z*d;d<„ Z+d=d>„ Z,d?d@„ Z-dAdB„ Z.dCdD„ Z/dEdF„ Z0dGdH„ Z1dIdJ„ Z2dKdL„ Z3dMdN„ Z4dOdP„ Z5dQdR„ Z6dSdT„ Z7dUdV„ Z8dWdX„ Z9dYdZ„ Z:d[e;d\fd]e;d^fd_e;fd`e;fgdae<fge=dbƒdce#fdde;defdfe8fdge>dhfdie>dhfdje>dhfdke>dhfdle?j@dhfdme?j@dhfdne>dhfdoefdpefdqeAe>e<e>ƒdrfdseAe>e<e>ƒdtfdueAe>e<e>ƒdtfdve dw eAe>e<eBjCƒdtfdve dw eAe>e<eBjDƒdtfdxe>dtfdyeAeEe<e>ƒdtfdzeFjGd{fd|eAe>e<eFjGƒd{fd}eAe>e<e>e<e>e<eFjGƒd{fd~eEfdeAe>e<e>ƒfd€e>d^fdeAe>e<e>ƒfd‚e>fdƒe>dhfd„eAe>e<e>ƒdhfd…e>d†fd‡e>dhfdˆe?feeBjCfeeBjDfd‰eAe>e<ƒdhfg$eeBjCd\feeBjDd\fge=dbƒdde;defdŠe dw eAe>e<eBjCƒfdŠe dw eAe>e<eBjDƒfeeBjCfeeBjDfd‹eEfdŒe?fdeEdhfeeFjHfg
e=dbƒdde;defeeBjCdŽfeeBjDdŽfde>dhfde>dŽfd‘eAe>e<e>ƒfd’e>fd‹eEfg	dde;defeeFjIfd“e dw eAeEeBjCƒfd“e dw eAeEeBjDƒfd”e dw eAeEe<eBjCƒfd”e dw eAeEe<eBjDƒfd•eEfd–eAe<eFjIƒd—fd˜eAe<e>jJe<eFjGƒd{fd™eAe<e>jJe<ƒdhfg
dde;defdše d› eAeFeEƒdœfge=dbƒdde;defed eFjGdœfeeFjGdœfge=dbƒdde;defdzeFjGd{fdžeAe>e<eEe<eEƒdœfdŸe4fd eAe>e<eEƒd¡fd¢eAe>e<eEe<eEƒd£fd¤eAeEe<ƒd¥fdeEd\fd¦e>d\fdŠe dw eAe>e<eBjCƒdŽfdŠe dw eAe>e<eBjDƒdŽfd§e>dhfd¨e?j@dhfd©e?dhfdªe>dhfd«eAe>e<e>e<e>ƒdhfd¬eAe>e<e>ƒdrfd­eAe>e<e>ƒfd®eAe>e<e>ƒfdve dw eAe>e<eBjCƒdtfdve dw eAe>e<eBjDƒdtfd¯e>dtfdyeAe?e<e>ƒdtfed° e>jKdœfd±eAe>jKeEƒfee>jKd£fgdde;defd²eEdhfd³e"fd´eFdµfeeFdµfd¶e1fgdde;defd•eEd\feeFjGfeeBjCfeeBjDfgdde;defd·e#fd‹eEfdfe6fd¸eEfgd¹e!fdºeLfd»eLfgdae<d¼fd½eBjMd\feeFfgd½eBjMd\fd»eLfgd¾eBjMd\fd»eLfge=dbƒd¿e fdÀeFjNdÁfdÂeEdÃfdÄeEdÅfdŒe?feeFjNfgdÂeEdÆfdfe8fdÇeFjOfeeFjOfeeFjOfeeFjOfdÈeFjOfgdÄeEdÆfd²eEdhfdÉeFjOfeeFjOfeeFjOfeeFjOfdÈeFjOfgdÊeFjNdËfdfe8fdÌe/fdÍe,fdÎe-fdÏe$feeLfeeLfeeLfdÈeLfg
e=dbƒdÐe feeFjNfge=dbƒdde;defdÑe>d\fgdde;defe=dbƒdÒe>d\fge=dbƒdde;defeeBjCfeeBjDfdÓe>fdeEd\fgeeFjGdÔfgdÕeEdœfd»eLfdÖe<fge=dbƒdde;defd×e?dœfdØe?dhfePdœƒge=dbƒeeFjGd\fge=dbƒdfe6fdÙeEdhfgeeFjGdhfgeeFjGdhfge=dbƒdde;defdÚeQjRdœfdÛeQjRdœfdÜeQjRdœfdÝeQjSdœfdÞeEdœfdßeAe>jJe<e>jJƒdœfdàeAe>jJe<e>jJe<e>jJƒdœfdáeAe>jJe<e>jJe<e>jJƒdœfed° eFdœfdâe eFjNdœfd´eFjNdœfeeBjCdœfeeBjDdœfdãe#fdäeAe>jJe<e>jJe<e>jJƒfdåeAe>jJe<e>jJƒdŽfdæeAe>jJe<e>jJƒdŽfdçeAe>jJe<e>jJe<e>jJƒdèfdéeAe>jTe<e>jTƒdèfdêeAe>jJe<e>jJƒdèfdëeAe>e<eFjGƒd{fd}eAe>e<e>e<e>e<eFjGƒd{fdzeFjGd{fdìeAe>jJe<e>jJe<eFjGƒd{fdíeAe>jJe<eFjIƒd—fdîeAe?e<e>ƒdtfdïe3fdðe2fdÌe0fdÍe+fdÎe.fdÏe5fdñeAe>jJe<e>jJƒdòfdóe*fdôe)fdõeAe>e<eEƒfdöeAe>e<eEƒfd÷e7fdøe7fdùe dw eAe>e<ƒdúfdûe dw eAe>e<ƒdüfdýe dþ eAe>e<eFjGe<eEƒdœfdÿeAe>jJe<e>jJƒfd e6fde'fde(fdeAe>jJe<e>jJƒdfdeAe>jTe<e>jTƒdfdeAeEe<ƒd¥fde>fd	eAe>jJe<e>jJƒd
fdŠe dw eBjCdŽfdŠe dw eBjDdŽfdeAe>eEƒfdeAe>eEƒfdeAe>e<eEƒfd¦e>fdeAe>e<e>ƒfd‡e>fdeAe>e<ƒdhfdeAe>e<eEeFjGƒd{fde dw eFjOdœfde dw eFjOdœfde eFjOdœfdeFjOdœfdeFjOdœfdeEfed eFjNdfed eFjUdfdše d eAeFjUe>jKeQjSƒfeeFjNdœfgIdœ!ZVdS (  r   z…
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ZXQueryZ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 )Nr.   r   )r/   r
   r0   r1   r2   r3   )r4   r5   r6   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 )Nr.   )
r/   r   r'   r0   Úxquery_parse_stater1   ÚappendÚpopr2   r3   )r4   r5   r6   r+   r+   r,   Úpopstate_tag_callback€   s    z!XQueryLexer.popstate_tag_callbackc             c   s8   |  ¡ tj| d¡fV  |j | j ¡ ¡ | ¡ |_	d S )Nr.   )
r/   r   ÚDocr0   r1   r:   r9   r;   r2   r3   )r4   r5   r6   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 )Nr.   Úoccurrenceindicatorz[?*+]+é   Úoperator)r/   r   r0   r9   r;   r$   r5   r1   r:   r2   r3   )r4   r5   r6   Ú
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 )Nr.   r   r   )
r/   r   r0   Úlenr9   r1   r;   r:   r2   r3   )r4   r5   r6   r+   r+   r,   Úpopstate_callbackš   s    

zXQueryLexer.popstate_callbackc             c   s>   |  ¡ tj| d¡fV  | j d¡ |j d¡ | ¡ |_d S )Nr.   Úelement_contentÚ	start_tag)	r/   r   r'   r0   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   Úcdata_section)r/   r   r=   r0   r1   r:   r9   Ústater;   r2   r3   )r4   r5   r6   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 )Nr.   rG   )r/   r   r'   r0   r9   r:   rJ   r;   r1   r2   r3   )r4   r5   r6   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 )Nr.   r@   é   r   rA   )
r/   r   r0   r   r   r1   r9   r:   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   r   rA   )
r/   r   r0   r   r   r1   r9   r:   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   r   rA   )
r/   r   r0   r   r   r1   r9   r:   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   r   rA   )	r/   r   r0   r   r1   r9   r:   r2   r3   )r4   r5   r6   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 )Nr.   Úprocessing_instructionrA   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   rR   rF   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   rI   rF   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   rI   rA   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   Úxml_commentrF   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   rW   rA   )	r/   r   r=   r0   r1   r:   r9   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   Úkindtest)
r/   r   r0   r   r   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   rA   Úkindtestforpi)
r/   r   r0   r   r   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   rA   rZ   )
r/   r   r0   r   r   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   r?   rZ   )r/   r   r'   r0   r   r   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   rA   rG   )	r/   r   r'   r0   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   rA   r   )r/   r   r0   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   rA   r   )
r/   r   r0   r   r   r9   r:   r1   r2   r3   )r4   r5   r6   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 )Nr.   r   )	r/   r   r0   r1   r;   r9   r:   r2   r3   )r4   r5   r6   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 )Nr.   rA   )r/   r   Ú	Attributer0   r1   r:   r2   r3   )r4   r5   r6   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 )Nr.   r@   rM   rA   )	r/   r   r0   r   r   r9   r:   r2   r3   )r4   r5   r6   r+   r+   r,   Úpushstate_operator_callback@  s
    z'XQueryLexer.pushstate_operator_callbackz(:\))z#popz(\(:)z#pushz[^:)]z([^:)]|:|\))z\s+Ú
whitespacez(\})z\(:Ú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)(\()?rA   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*)(\())r?   r\   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])r?   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(/>)ú>rF   ú"Úquot_attribute_contentú'Úapos_attribute_contentrG   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]+))!rh   rg   rA   rm   rq   r€   rs   rl   ri   rj   rZ   r\   rv   rW   rR   rw   rI   rG   rz   r|   rF   r}   r   r„   r…   ru   r   r?   r‡   rˆ   rƒ   r‚   r   N)Wr   r   r   r   r    r!   r"   r#   r9   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameÚqnameÚ	entityrefÚcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr$   r%   Ú	MULTILINEÚUNICODEr&   r7   r8   r<   r>   rC   rE   rH   rK   rL   rN   rO   rP   rQ   rS   rT   rU   rV   rX   rY   r[   r]   r^   r_   r`   ra   rb   rc   re   rf   r	   r   r   r   r
   ÚWordr   r   ÚDoubleÚSingler   r   ÚVariableÚ	NamespaceZ	DecoratorÚDeclarationÚTyper   r=   r'   rd   r   r   ÚFloatÚIntegerZPseudor(   r*   r+   r+   r+   r,   r   ;   s   	












































c               @   s  e 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   zr
    For QML files. See http://doc.qt.digia.com/4.7/qdeclarativeintroduction.html.

    .. versionadded:: 1.6
    ZQMLZ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   ÚRegexr   r
   r   r   r“   ZReservedZConstantr   ZBuiltinZOtherr   r•   ZHexr–   r   r*   r+   r+   r+   r,   r     sN   


c               @   sâ   e 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[  
    Syntax rules of Cirru can be found at:
    http://cirru.org/

    * 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cirruz*.cirruztext/x-cirruz[^"\\\n]z\\Úescapery   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   ZEscaper
   r   r(   r   Ú
Whitespacer   r‘   r   r*   r+   r+   r+   r,   r   b  s6   




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\nro   z"[^"]+"z
\'[^\']+\'z\w+ú+)r   r£   zeval-or-plainÚ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   rd   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   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$    ,!     cI7