3
.ßL]å›  ã               @   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 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-2019 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)Úunirange)Ú_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,   ú=/tmp/pip-install-5sebvq2j/pygments/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d�eAe>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d�eEdhfeeFjHfg
e=dbƒdde;defeeBjCdŽfeeBjDdŽfd�e>dhfd�e>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d�eEd\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»eMd¼d½ƒ eLfgdae<d¾fd¿eBjNd\feeFfgd¿eBjNd\fd»eMd¼d½ƒ eLfgdÀeBjNd\fd»eMd¼d½ƒ eLfge=dbƒdÁe fdÂeFjOdÃfdÄeEdÅfdÆeEdÇfdŒe?feeFjOfgdÄeEdÈfdfe8fdÉeFjPfeeFjPfeeFjPfeeFjPfdÊeFjPfgdÆeEdÈfd²eEdhfdËeFjPfeeFjPfeeFjPfeeFjPfdÊeFjPfgdÌeFjOdÍ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eFjOf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d�eEd\fgeeFjGdÖfgd×eEdœfd»eMd¼d½ƒ eLfdØe<fge=dbƒdde;defdÙe?dœfdÚe?dhfeQdœƒge=dbƒeeFjGd\fge=dbƒdfe6fdÛeEdhfgeeFjGdhfgeeFjGdhfge=dbƒdde;defdÜeRjSdœfdÝeRjSdœfdÞeRjSdœfdßeRjTdœ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 eFjOdœfd´eFjOdœ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>jUe<e>jUƒ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>jUe<e>jUƒ�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 eFjPdœf�de dw eFjPdœf�de eFjPdœf�deFjPdœf�deFjPdœf�deEfe�d eFjO�dfe�d eFjV�dfdše �d eAeFjVe>jKeRjTƒfeeFjOdœ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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,   |j ƒ t|jdƒfV  dg|_|jƒ |_d S )Né   r   )Ústartr   ÚgroupÚstackÚendÚpos)ÚlexerÚmatchÚctxr,   r,   r-   Úpunctuation_root_callbackv   s    z%XQueryLexer.punctuation_root_callbackc             c   s,   |j ƒ t|jdƒfV  dg|_|jƒ |_d S )Nr/   r   )r0   r
   r1   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Úoperator_root_callback|   s    z"XQueryLexer.operator_root_callbackc             c   s8   |j ƒ tj|jdƒfV  |jj| jjƒ ƒ |jƒ |_	d S )Nr/   )
r0   r   r(   r1   r2   ÚappendÚxquery_parse_stateÚpopr3   r4   )r5   r6   r7   r,   r,   r-   Úpopstate_tag_callback‚   s    z!XQueryLexer.popstate_tag_callbackc             c   s8   |j ƒ tj|jdƒfV  |jj| jjƒ ƒ |jƒ |_	d S )Nr/   )
r0   r   ÚDocr1   r2   r:   r;   r<   r3   r4   )r5   r6   r7   r,   r,   r-   Úpopstate_xmlcomment_callback‡   s    z(XQueryLexer.popstate_xmlcomment_callbackc             c   sž   |j ƒ t|jdƒfV  | jjƒ }|dkr‚tjd|jdƒƒrh|j ƒ t|jdƒfV  |jjdƒ |j	ƒ |_
qš|jjdƒ |j	dƒ|_
n|jj|ƒ |j	dƒ|_
d S )Nr/   Úoccurrenceindicatorz[?*+]+é   Úoperator)r0   r   r1   r;   r<   r%   r6   r2   r:   r3   r4   )r5   r6   r7   Ú
next_stater,   r,   r-   Úpopstate_kindtest_callbackŒ   s    
z&XQueryLexer.popstate_kindtest_callbackc             c   sh   |j ƒ t|jdƒfV  t| jƒdkr0|jjƒ  n*t|jƒdkrR|jj| jjƒ ƒ ndg|_|jƒ |_	d S )Nr/   r   r   )
r0   r   r1   Úlenr;   r2   r<   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Úpopstate_callback›   s    zXQueryLexer.popstate_callbackc             c   s>   |j ƒ tj|jdƒfV  | jjdƒ |jjdƒ |jƒ |_d S )Nr/   Úelement_contentÚ	start_tag)	r0   r   r(   r1   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú+pushstate_element_content_starttag_callback¨   s    z7XQueryLexer.pushstate_element_content_starttag_callbackc             c   sB   |j ƒ tj|jdƒfV  |jjdƒ | jj|jjƒ |j	ƒ |_
d S )Nr/   Úcdata_section)r0   r   r>   r1   r2   r:   r;   Ústater<   r3   r4   )r5   r6   r7   r,   r,   r-   Ú pushstate_cdata_section_callback®   s    z,XQueryLexer.pushstate_cdata_section_callbackc             c   sB   |j ƒ tj|jdƒfV  | jj|jjƒ |jjdƒ |j	ƒ |_
d S )Nr/   rH   )r0   r   r(   r1   r;   r:   rK   r<   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Úpushstate_starttag_callback´   s    z'XQueryLexer.pushstate_starttag_callbackc             c   sd   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  dg|_| jjdƒ |jƒ |_	d S )Nr/   rA   é   r   rB   )
r0   r   r1   r   r   r2   r;   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Ú!pushstate_operator_order_callbackº   s    z-XQueryLexer.pushstate_operator_order_callbackc             c   sd   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  dg|_| jjdƒ |jƒ |_	d S )Nr/   rA   rN   r   rB   )
r0   r   r1   r   r   r2   r;   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Úpushstate_operator_map_callbackÂ   s    z+XQueryLexer.pushstate_operator_map_callbackc             c   sd   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  dg|_| jjdƒ |jƒ |_	d S )Nr/   rA   rN   r   rB   )
r0   r   r1   r   r   r2   r;   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Ú pushstate_operator_root_validateÊ   s    z,XQueryLexer.pushstate_operator_root_validatec             c   sd   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  dg|_| jjdƒ |jƒ |_d S )Nr/   rA   rN   r   rB   )	r0   r   r1   r   r2   r;   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Ú)pushstate_operator_root_validate_withmodeÒ   s    z5XQueryLexer.pushstate_operator_root_validate_withmodec             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   Úprocessing_instructionrB   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú2pushstate_operator_processing_instruction_callbackÚ   s    z>XQueryLexer.pushstate_operator_processing_instruction_callbackc             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   rS   rG   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú9pushstate_element_content_processing_instruction_callbackà   s    zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   rJ   rG   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú0pushstate_element_content_cdata_section_callbackæ   s    z<XQueryLexer.pushstate_element_content_cdata_section_callbackc             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   rJ   rB   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú)pushstate_operator_cdata_section_callbackì   s    z5XQueryLexer.pushstate_operator_cdata_section_callbackc             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   Úxml_commentrG   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú-pushstate_element_content_xmlcomment_callbackò   s    z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc             c   s>   |j ƒ tj|jdƒfV  |jjdƒ | jjdƒ |jƒ |_d S )Nr/   rX   rB   )	r0   r   r>   r1   r2   r:   r;   r3   r4   )r5   r6   r7   r,   r,   r-   Ú&pushstate_operator_xmlcomment_callbackø   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc             c   sh   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ |jjdƒ |jƒ |_	d S )Nr/   rA   rN   Úkindtest)
r0   r   r1   r   r   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Úpushstate_kindtest_callbackþ   s    z'XQueryLexer.pushstate_kindtest_callbackc             c   sh   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ |jjdƒ |jƒ |_	d S )Nr/   rA   rN   rB   Úkindtestforpi)
r0   r   r1   r   r   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú)pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc             c   sh   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ |jjdƒ |jƒ |_	d S )Nr/   rA   rN   rB   r[   )
r0   r   r1   r   r   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú$pushstate_operator_kindtest_callback  s    z0XQueryLexer.pushstate_operator_kindtest_callbackc             c   sj   |j ƒ tj|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ |jjdƒ |j	ƒ |_
d S )Nr/   rA   rN   r@   r[   )r0   r   r(   r1   r   r   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú/pushstate_occurrenceindicator_kindtest_callback  s    z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc             c   s>   |j ƒ tj|jdƒfV  | jjdƒ |jjdƒ |jƒ |_d S )Nr/   rB   rH   )	r0   r   r(   r1   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú$pushstate_operator_starttag_callback  s    z0XQueryLexer.pushstate_operator_starttag_callbackc             c   s8   |j ƒ t|jdƒfV  | jjdƒ dg|_|jƒ |_d S )Nr/   rB   r   )r0   r   r1   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú pushstate_operator_root_callback$  s    z,XQueryLexer.pushstate_operator_root_callbackc             c   sd   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ dg|_|jƒ |_	d S )Nr/   rA   rN   rB   r   )
r0   r   r1   r   r   r;   r:   r2   r3   r4   )r5   r6   r7   r,   r,   r-   Ú*pushstate_operator_root_construct_callback*  s    z6XQueryLexer.pushstate_operator_root_construct_callbackc             c   sB   |j ƒ t|jdƒfV  |jjƒ }| jj|ƒ dg|_|jƒ |_d S )Nr/   r   )	r0   r   r1   r2   r<   r;   r:   r3   r4   )r5   r6   r7   Z	cur_stater,   r,   r-   Úpushstate_root_callback2  s
    
z#XQueryLexer.pushstate_root_callbackc             c   s2   |j ƒ tj|jdƒfV  |jjdƒ |jƒ |_d S )Nr/   rB   )r0   r   Ú	Attributer1   r2   r:   r3   r4   )r5   r6   r7   r,   r,   r-   Ú%pushstate_operator_attribute_callback9  s    z1XQueryLexer.pushstate_operator_attribute_callbackc             c   s\   |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  |j ƒ t|jdƒfV  | jjdƒ |jƒ |_d S )Nr/   rA   rN   rB   )	r0   r   r1   r   r   r;   r:   r3   r4   )r5   r6   r7   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)(\()?rB   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*)(\))(?=[*+?])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}u   \t|\r|\n|[ -íŸ¿]|[î€€-ï¿½]|i   iÿÿ Ú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   rB   rn   rr   r�   rt   rm   rj   rk   r[   r]   rw   rX   rS   rx   rJ   rH   r{   r}   rG   r~   r‚   r…   r†   rv   r€   r@   rˆ   r‰   r„   rƒ   r   N)r@   r]   )Xr   r   r   r    r!   r"   r#   r$   r;   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameÚqnameÚ	entityrefÚcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr%   r&   Ú	MULTILINEÚUNICODEr'   r8   r9   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
   ÚWordr   r   ÚDoubleÚSingler   r   ÚVariableÚ	NamespaceZ	DecoratorÚDeclarationÚTyper   r   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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)ú#popz(?=/)Ú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   r   ÚRegexr   r
   r   r   r”   ZReservedÚ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\\Úescaperz   ú#popÚ.z\,z	[^\s"()]+z\)z(?=\n)z\(z#pushÚstringz[ ]+z(?<!\w)\$(?!\w)Úfunctionz\nz[+-]?[\d.]+\bz^\n+Úline)r¡   rž   r¢   r£   r   N)rŸ   r¡   )r£   r¢   )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   `  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\nrp   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   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   Zpygments.utilr   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&    ,!     _I7