o
    ‡ÎÖaFœ  ã                   @   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 g d	¢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Ú
Whitespace)Ú_indentationÚ_starts_block)Ú	HtmlLexer)ÚJavascriptLexer)Ú	RubyLexer)Ú	DuelLexerÚ	SlimLexerÚXQueryLexerÚQmlLexerÚ
CirruLexerc                
   @   sª   e Zd ZdZdZg d¢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
    ÚDuel)ÚduelÚ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/   ú9/usr/lib/python3/dist-packages/pygments/lexers/webmisc.pyr      s4    ÿÿÿÿÿ

õÿr   c                   @   sö  e Zd ZdZdZg d¢Zg d¢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'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>„ Z0d?d@„ Z1dAdB„ Z2dCdD„ Z3dEdF„ Z4dGdH„ Z5dIdJ„ Z6dKdL„ Z7dMdN„ Z8dOdP„ Z9dQdR„ Z:i dSdTe;fdUe;dVfdWe;dXfdYe;fg“dZd[e<fg“d\g e=dZƒ‘d]e#f‘dUe;dSf‘d^e8f‘d_e>d`f‘dae>d`f‘dbe>d`f‘dce>d`f‘dde?j@d`f‘dee?j@d`f‘dfe>d`f‘dgef‘dhef‘dieAe>eBe>ƒdjf‘dkeAe>eBe>ƒdlf‘dmeAe>eBe>ƒdlf‘dne do eAe>eBeCjDƒdlf‘dne do eAe>eBeCjEƒdlf‘dpe>dlf‘dqeAeFeBe>ƒdlf‘dreGjHdsf‘dteAe>eBeGjHƒdsf‘dueAe>eBe>eBe>eBeGjHƒdsf‘dveFf‘dweAe>eBe>ƒf‘dxe>dVf‘dyeAe>eBe>ƒf‘dze>f‘d{e>d`f‘d|eAe>eBe>ƒd`f‘d}e>d~f‘de>d`f‘d€e?f‘eeCjDf‘eeCjEf‘d�eAe>eBƒd`f‘“d~eeCjDdXfeeCjEdXfg“d‚e=dZƒdUe;dSfdƒe do eAe>eBeCjDƒfdƒe do eAe>eBeCjEƒfeeCjDfeeCjEfd„eFfd…e?fd†eFd`feeGjIfg
“d‡e=dZƒdUe;dSfeeCjDd‚feeCjEd‚fdˆe>d`fd‰e>d‚fdŠeAe>eBe>ƒfd‹e>fd„eFfg	“dŒdUe;dSfeeGjJfd�e do eAeFeCjDƒfd�e do eAeFeCjEƒfdŽe do eAeFeBeCjDƒfdŽe do eAeFeBeCjEƒfd�eFfd�eAeBeGjJƒdŒfd‘eAeBe>jKeBeGjHƒdsfd’eAeBe>jKeBƒd`fg
“dsdUe;dSfd“e d” eAeGeFƒd\fg“dje=dZƒdUe;dSfed• eGjHd\feeGjHd\fg“dle=dZƒdUe;dSfdreGjHdsfd–eAe>eBeFeBeFƒd\fd—e4fd˜eAe>eBeFƒd™fdšeAe>eBeFeBeFƒd›fdœeAeFeBƒd�fd†eFdXfdže>dXfdƒe do eAe>eBeCjDƒd‚fdƒe do eAe>eBeCjEƒd‚fdŸe>d`fd e?j@d`fd¡e?d`fd¢e>d`fd£eAe>eBe>eBe>ƒd`fd¤eAe>eBe>ƒdjfd¥eAe>eBe>ƒfd¦eAe>eBe>ƒfdne do eAe>eBeCjDƒdlfdne do eAe>eBeCjEƒdlfd§e>dlfdqeAe?eBe>ƒdlfed¨ e>jLd\fd©eAe>jLeFƒfee>jLd›fg“dªdUe;dSfd«eFd`fd¬e"fd­eGd®feeGd®fd¯e1fg“d°dUe;dSfd�eFdXfeeGjHfeeCjDfeeCjEfg“d®dUe;dSfd±e#fd„eFfd^e6fd²eFfg“d³d´e!fdµeMfd¶eMfg“d·d[eBd¸fd¹eCjNdXfeeGfg“d¸d¹eCjNdXfd¶eMfg“dºd»eCjNdXfd¶eMfg“i d¼e=dZƒd½e fd¾eGjOd¿fdÀeFdÁfdÂeFdÃfd…e?feeGjOfg“dÁdÀeFd¼fd^e8fdÄeGjPfeeGjPfeeGjPfeeGjPfdÅeGjPfg“dÃdÂeFd¼fd«eFd`fdÆeGjPfeeGjPfeeGjPfeeGjPfdÅeGjPfg“d¿dÇeGjOdÈfd^e8fdÉe/fdÊe,fdËe-fdÌe$feeMfeeMfeeMfdÅeMfg
“dÈe=dZƒdÍe feeGjOfg“dÎe=dZƒdUe;dSfdÏe>dXfg“dÐdUe;dSfe=dZƒdÑe>dXfg“dÒe=dZƒdUe;dSfeeCjDfeeCjEfdÓe>fd†eFdXfg“d�eeGjHdÔfg“dÔdÕeFd\fd¶eMfdÖeBfg“d›e=dZƒdUe;dSfd×e?d\fdØe?d`feQd\ƒg“dÙe=dZƒeeGjHdXfg“dÚe=dZƒd^e6fdÛeFd`fg“dÜeeGjHd`fg“dÝeeGjHd`fg“d`g e=dZƒ‘dUe;dSf‘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ƒdsf‘dueAe>eBe>eBe>eBeGjHƒdsf‘dreGjHdsf‘dïeAe>jKeBe>jKeBeGjHƒdsf‘dðeAe>jKeBeGjJƒdŒf‘dñeAe?eBe>ƒdlf‘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 do eAe>eBƒdÝf‘düe do 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 do eCjDd‚f‘dƒe do 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ƒd`f‘�deAe>eBeFeGjHƒdsf‘�de do eGjPd\f‘�de do eGjPd\f‘�de eGjPd\f‘�deGjPd\f‘�deGjPd\f‘�deFf‘e�d eGjOdÚf‘e�d eGjVdÚf‘d“e �d eAeGjVe>jLeRjTƒf‘eeGjOd\f‘“¥ZW�dS (  r   z…
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ÚXQuery)ÚxqueryÚxqyÚxqÚxqlÚxqm)z*.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   ó.   � |  ¡ t| d¡fV  dg|_| ¡ |_d S ©Né   r   )Ústartr   ÚgroupÚstackÚendÚpos©ÚlexerÚmatchÚctxr/   r/   r0   Úpunctuation_root_callbackt   ó   €z%XQueryLexer.punctuation_root_callbackc                 c   r8   r9   )r;   r
   r<   r=   r>   r?   r@   r/   r/   r0   Úoperator_root_callbackz   rE   z"XQueryLexer.operator_root_callbackc                 c   s@   � |  ¡ tj| d¡fV  | jr|j | j ¡ ¡ | ¡ |_	d S ©Nr:   )
r;   r   r+   r<   Úxquery_parse_stater=   ÚappendÚpopr>   r?   r@   r/   r/   r0   Úpopstate_tag_callback€   s
   €z!XQueryLexer.popstate_tag_callbackc                 c   s:   � |  ¡ tj| d¡fV  |j | j ¡ ¡ | ¡ |_	d S rG   )
r;   r   ÚDocr<   r=   rI   rH   rJ   r>   r?   r@   r/   r/   r0   Úpopstate_xmlcomment_callback†   s   €z(XQueryLexer.popstate_xmlcomment_callbackc                 c   s¤   � |  ¡ t| d¡fV  | j ¡ }|dkrDt d| d¡¡r6|  ¡ t| d¡fV  |j d¡ | 	¡ |_
d S |j d¡ | 	d¡|_
d S |j |¡ | 	d¡|_
d S )Nr:   Úoccurrenceindicatorz[?*+]+é   Úoperator)r;   r   r<   rH   rJ   r(   rB   r=   rI   r>   r?   )rA   rB   rC   Ú
next_stater/   r/   r0   Úpopstate_kindtest_callback‹   s   €
z&XQueryLexer.popstate_kindtest_callbackc                 c   sx   � |  ¡ t| d¡fV  t| jƒdkr |j ¡  |jsdg|_nt|jƒdkr1|j | j ¡ ¡ ndg|_| ¡ |_	d S )Nr:   r   r   )
r;   r   r<   ÚlenrH   r=   rJ   rI   r>   r?   r@   r/   r/   r0   Úpopstate_callbackš   s   €
€zXQueryLexer.popstate_callbackc                 c   ó@   � |  ¡ tj| d¡fV  | j d¡ |j d¡ | ¡ |_d S )Nr:   Úelement_contentÚ	start_tag©	r;   r   r+   r<   rH   rI   r=   r>   r?   r@   r/   r/   r0   Ú+pushstate_element_content_starttag_callbackª   ó
   €z7XQueryLexer.pushstate_element_content_starttag_callbackc                 c   sD   � |  ¡ tj| d¡fV  |j d¡ | j |jj¡ | 	¡ |_
d S )Nr:   Úcdata_section)r;   r   rL   r<   r=   rI   rH   ÚstaterJ   r>   r?   r@   r/   r/   r0   Ú pushstate_cdata_section_callback°   s
   €z,XQueryLexer.pushstate_cdata_section_callbackc                 c   sD   � |  ¡ tj| d¡fV  | j |jj¡ |j d¡ | 	¡ |_
d S )Nr:   rW   )r;   r   r+   r<   rH   rI   r\   rJ   r=   r>   r?   r@   r/   r/   r0   Úpushstate_starttag_callback¶   s
   €z'XQueryLexer.pushstate_starttag_callbackc                 c   óf   � |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_	d S ©Nr:   rO   é   r   rP   ©
r;   r   r<   r   r   r=   rH   rI   r>   r?   r@   r/   r/   r0   Ú!pushstate_operator_order_callback¼   ó   €z-XQueryLexer.pushstate_operator_order_callbackc                 c   r_   r`   rb   r@   r/   r/   r0   Úpushstate_operator_map_callbackÄ   rd   z+XQueryLexer.pushstate_operator_map_callbackc                 c   r_   r`   rb   r@   r/   r/   r0   Ú pushstate_operator_root_validateÌ   rd   z,XQueryLexer.pushstate_operator_root_validatec                 c   sf   � |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  dg|_| j d¡ | ¡ |_d S r`   )	r;   r   r<   r   r=   rH   rI   r>   r?   r@   r/   r/   r0   Ú)pushstate_operator_root_validate_withmodeÔ   rd   z5XQueryLexer.pushstate_operator_root_validate_withmodec                 c   ó@   � |  ¡ tj| d¡fV  |j d¡ | j d¡ | ¡ |_d S )Nr:   Úprocessing_instructionrP   ©	r;   r   rL   r<   r=   rI   rH   r>   r?   r@   r/   r/   r0   Ú2pushstate_operator_processing_instruction_callbackÜ   rZ   z>XQueryLexer.pushstate_operator_processing_instruction_callbackc                 c   rh   )Nr:   ri   rV   rj   r@   r/   r/   r0   Ú9pushstate_element_content_processing_instruction_callbackâ   rZ   zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc                 c   rh   )Nr:   r[   rV   rj   r@   r/   r/   r0   Ú0pushstate_element_content_cdata_section_callbackè   rZ   z<XQueryLexer.pushstate_element_content_cdata_section_callbackc                 c   rh   )Nr:   r[   rP   rj   r@   r/   r/   r0   Ú)pushstate_operator_cdata_section_callbackî   rZ   z5XQueryLexer.pushstate_operator_cdata_section_callbackc                 c   rh   )Nr:   Úxml_commentrV   rj   r@   r/   r/   r0   Ú-pushstate_element_content_xmlcomment_callbackô   rZ   z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc                 c   rh   )Nr:   ro   rP   rj   r@   r/   r/   r0   Ú&pushstate_operator_xmlcomment_callbackú   rZ   z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sj   � |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | ¡ |_	d S )Nr:   rO   ra   Úkindtest©
r;   r   r<   r   r   rH   rI   r=   r>   r?   r@   r/   r/   r0   Úpushstate_kindtest_callback   ó   €z'XQueryLexer.pushstate_kindtest_callbackc                 c   ój   � |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | ¡ |_	d S )Nr:   rO   ra   rP   Úkindtestforpirs   r@   r/   r/   r0   Ú)pushstate_operator_kindtestforpi_callback  ru   z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   rv   )Nr:   rO   ra   rP   rr   rs   r@   r/   r/   r0   Ú$pushstate_operator_kindtest_callback  ru   z0XQueryLexer.pushstate_operator_kindtest_callbackc                 c   sl   � |  ¡ tj| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ |j d¡ | 	¡ |_
d S )Nr:   rO   ra   rN   rr   )r;   r   r+   r<   r   r   rH   rI   r=   r>   r?   r@   r/   r/   r0   Ú/pushstate_occurrenceindicator_kindtest_callback  s   €z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc                 c   rU   )Nr:   rP   rW   rX   r@   r/   r/   r0   Ú$pushstate_operator_starttag_callback   rZ   z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s:   � |  ¡ t| d¡fV  | j d¡ dg|_| ¡ |_d S )Nr:   rP   r   )r;   r   r<   rH   rI   r=   r>   r?   r@   r/   r/   r0   Ú pushstate_operator_root_callback&  s
   €z,XQueryLexer.pushstate_operator_root_callbackc                 c   sf   � |  ¡ t| d¡fV  |  ¡ t| d¡fV  |  ¡ t| d¡fV  | j d¡ dg|_| ¡ |_	d S )Nr:   rO   ra   rP   r   rs   r@   r/   r/   r0   Ú*pushstate_operator_root_construct_callback,  s   €z6XQueryLexer.pushstate_operator_root_construct_callbackc                 c   sD   � |  ¡ t| d¡fV  |j ¡ }| j |¡ dg|_| ¡ |_d S r9   )	r;   r   r<   r=   rJ   rH   rI   r>   r?   )rA   rB   rC   Ú	cur_stater/   r/   r0   Úpushstate_root_callback4  s   €
z#XQueryLexer.pushstate_root_callbackc                 c   s4   � |  ¡ tj| d¡fV  |j d¡ | ¡ |_d S )Nr:   rP   )r;   r   Ú	Attributer<   r=   rI   r>   r?   r@   r/   r/   r0   Ú%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:   rO   ra   rP   )	r;   r   r<   r   r   rH   rI   r>   r?   r@   r/   r/   r0   Úpushstate_operator_callback@  s   €z'XQueryLexer.pushstate_operator_callbackÚcommentz[^:()]+z\(:ú#pushz:\)ú#popz[:()]Ú
whitespaceú\s+rP   z(\})z(\{)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)Úexternalz(start|when|end)z(only)(\s+)(end)Ú	collationÚuritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)Únamespacedeclz
(at)(\s+)(ú,ú=ú;Únamespacekeywordzinherit|no-inheritÚ	namespacez(default)(\s+)(element)zpreserve|no-preserveÚannotationnamez(\()(z
(\,)(\s+)(ú\)z	(\s+)(\%)z(\s+)(variable)(\s+)(\$)z(\s+)(function)(\s+)ú(z)(\()?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*)(\())rN   rw   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rN   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)(\()rr   z\{z(\))([*+?]?)z\*Úclosekindtestz!(element|schema-element)(\s*)(\()rw   z(\))z\?ro   z(-->)z	[^-]{1,2}z@\t|\r|\n|[\u0020-\uD7FF]|[\uE000-\uFFFD]|[\U00010000-\U0010FFFF]ri   Úprocessing_instruction_contentz\?>r[   z]]>rW   z(/>)ú>rV   ú"Úquot_attribute_contentú'Úapos_attribute_contentz""z	\{\{|\}\}z''z</Úend_tagz(<!--)z(<\?)z(<!\[CDATA\[)z(<)z(>)Úxmlspace_declzpreserve|stripÚdeclareorderingzordered|unorderedÚxqueryversionÚencodingÚpragmacontentsz#\)z(\s+)z\*|\?|\+z:=ÚoptionÚqname_brarenz(\()Úelement_qnameÚattribute_qnamez\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)z(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)z(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+)(?=z(element)(\s+)(?=z((processing-instruction|namespace)(\s+)(z
)(\s*)(\{)z(declare|define)(\s+)(function)z(\{|\[)z(unordered|ordered)(\s*)(\{)z(map|array)(\s*)(\{)z(declare)(\s+)(ordering)z(xquery)(\s+)(version)z
(\(#)(\s*)Úreturnz(declare)(\s+)(option)zB(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*\{)z(?=\s*\([^:])z)(#)([0-9]+)N)Xr    r!   r"   r#   r$   r%   r&   r'   rH   ÚncnamestartcharÚ
ncnamecharÚncnameÚpitarget_namestartcharÚpitarget_namecharÚpitargetÚprefixednameÚunprefixednameÚqnameÚ	entityrefÚcharrefÚstringdoubleÚstringsingleÚelementcontentcharÚquotattrcontentcharÚaposattrcontentcharr(   r)   Ú	MULTILINEÚUNICODEr*   rD   rF   rK   rM   rR   rT   rY   r]   r^   rc   re   rf   rg   rk   rl   rm   rn   rp   rq   rt   rx   ry   rz   r{   r|   r}   r   r�   r‚   r	   r   r   r   r
   ÚWordr   r   r   ÚDoubleÚSingler   r   ÚVariableÚ	NamespaceÚ	DecoratorÚDeclarationÚTyper   rL   r+   r€   r   r   ÚFloatÚIntegerÚPseudor,   r.   r/   r/   r/   r0   r   ;   sæ   	ûÿÿøÿþýûúùø	÷

öÿõÿóÿñÿïÿíÿëÿé
ÿç
ÿåãÿâ
 à!ÿß#þÝ'Ù(Ø)×*Ö+Õ,Ô-Ó.Ò1Ï4Ì7É8È:ÆõG

þ¹KöµW

÷©b
ÿ
ÿÿÿóžrþŽv
üŠ|
ÿþ
þþ
ÿ
ÿÿ
ÿÿ
ÿ
ÿ
Ö„ )ú �× 1û �Ï 8û �È ?ÿý �Á E
ý �» J
ÿþ �¶ O
ÿþ �± T
ù �¬ ]ù �£ fù �š o
ö �‘ {ý �…  ý � �ÿ  ý � �ú  ú � �õ  
ÿ � �í  ÿü � �ê  û � �ä  #
þ � �Ý  'ý � �Ù  ,
ÿ � �Ô  /
ÿ � �Ñ  2ÿþ
ú
ù
ø
	÷
öÿõÿóÿñïî
í
ì
ëéÿæÿäÿâ"þÞ%ÿÛ'ÿÙ+ÿÕ-ÿÓ
/Ñ0ÿÐ4Ì7É9þÇ=ÿÃ@ÀB¾D¼G¹Iÿ·Lÿ´N²O±P°Qÿ¯Tÿ¬
W
ÿ©
Z
ÿ¦
]þ£aÿŸdœfÿšiÿ—lÿ”oÿ‘rŽu‹wÿ‰{…|„~ÿ‚ ÿ �ÿ  �ü  �ú 	 �÷ 
 �ö  �ó ÿ �ò  �î  �í  �ì  �ë  �ê  �è  �å  �ä  �ã 
 �â � �Îr   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
    ÚQMLÚqmlÚqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlr‡   z<!--z//.*?\nz	/\*.*?\*/Úcommentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)r…   z(?=/))r…   Úbadregexú\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Ã   ÚReservedÚConstantr   ÚBuiltinÚOtherr   rÅ   ÚHexrÆ   r¾   r.   r/   r/   r/   r0   r     sf    	üÿûÿÿÿþ
ýüß
ïr   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
    ÚCirruÚcirruz*.cirruztext/x-cirruz	[^"\\\n]+z\\Úescaperœ   r…   Ú.z\,z	[^\s"()]+r–   z(?=\n)z\(r„   )r…   Ústringz[ ]+z(?<!\w)\$(?!\w)ÚfunctionrÍ   rÙ   z[+-]?[\d.]+\bz^\n+)ÚlinerÚ   )rÙ   r×   rÚ   rÛ   r   N)r    r!   r"   r#   r$   r%   r&   r'   r(   r»   r*   r   ÚEscaper
   r   r,   r   r   r   rÀ   r   r.   r/   r/   r/   r0   r   b  sD    
ý
ÿ
ù
øþ
är   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
    ÚSlimÚslimz*.slimztext/x-slimz(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+Útagz	\#[\w:-]+z([ \t]*==?)(.*\n)r   z[ \t]+[\w:-]+(?==)úhtml-attributesÚplainÚcssz[\w:-]+:[ \t]*\nz	(-)(.*\n)r…   z\|z*\nú/úslim-comment-blockz[\w:-]+úeval-or-plainz[<>]{1,2}(?=[ \t=])z[ \t]+\nz#pop:2z([^#\n]|#[^{\n]|(\\\\)*\\#\{)+z(#\{)(.*?)(\})rÍ   r‘   z"[^"]+"z
\'[^\']+\'z\w+ú+)r   râ   rå   Úcontentrß   rá   rà   rä   N)r    r!   r"   r#   r$   r%   r&   r'   r(   Ú
IGNORECASEr*   Ú_dotr   r   r   ÚClassr,   r   r   r   r   r€   r   r   r   r	   ÚPreprocr+   r   ÚInterpolr.   r/   r/   r/   r0   r   ™  sh    þ

þþ
û	þ
÷üÿüüþ
Ìr   )#r#   r(   Úpygments.lexerr   r   r   r   r   r   Úpygments.tokenr   r	   r
   r   r   r   r   r   r   r   Úpygments.lexers.cssr   r   Úpygments.lexers.htmlr   Úpygments.lexers.javascriptr   Úpygments.lexers.rubyr   Ú__all__r   r   r   r   r   r/   r/   r/   r0   Ú<module>   s&    
 0!     cI7