Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/webmisc.cpython-37.pyc

B

Ƚ�\��@s�dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZddlmZddlmZmZddlmZddlmZdd	lmZd
ddd
dgZGdd
�d
e�ZGdd�de�Z Gdd
�d
e�Z!Gdd�de�Z"Gdd�de�Z#dS)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�eZdZdZdZdddgZddgZdd	gZej	Z
d
deej
ee�ej
�fdeej
ejeeej
�fd
eej
ejej
�fdeee�ee�ee��fdee�fdee�fgiZdS)rz�
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    See http://duelengine.org/.
    See http://jsonml.org/jbst/.

    .. versionadded:: 1.4
    ZDuelZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/x-jbst�rootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�re�DOTALL�flagsrr�Tagrr�Functionrr
r	�	Multiliner�tokens�r,r,�H/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/webmisc.pyrs$

cl@s�
eZdZdZdZdddddgZdd	d
ddgZd
dgZgZdZ	de	dZ
de	e
fZdZdedZ
dee
fZdeefZeZdeefZdZdZdededZdededZdZdZd ZejejBejBZd!d"�Zd#d$�Zd%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\fd]e;d^fd_e;fd`e;fgdae<fge=db�dce#fdde;defdfe8fdge>dhfdie>dhfdje>dhfdke>dhfdle?j@dhfdme?j@dhfdne>dhfdoefdpefdqeAe>e<e>�drfdseAe>e<e>�dtfdueAe>e<e>�dtfdvedweAe>e<eBjC�dtfdvedweAe>e<eBjD�dtfdxe>dtfdyeAeEe<e>�dtfdzeFjGd{fd|eAe>e<eFjG�d{fd}eAe>e<e>e<e>e<eFjG�d{fd~eEfdeAe>e<e>�fd�e>d^fd�eAe>e<e>�fd�e>fd�e>dhfd�eAe>e<e>�dhfd�e>d�fd�e>dhfd�e?feeBjCfeeBjDfd�eAe>e<�dhfg$eeBjCd\feeBjDd\fge=db�dde;defd�edweAe>e<eBjC�fd�edweAe>e<eBjD�feeBjCfeeBjDfd�eEfd�e?fd�eEdhfeeFjHfg
e=db�dde;defeeBjCd�feeBjDd�fd�e>dhfd�e>d�fd�eAe>e<e>�fd�e>fd�eEfg	dde;defeeFjIfd�edweAeEeBjC�fd�edweAeEeBjD�fd�edweAeEe<eBjC�fd�edweAeEe<eBjD�fd�eEfd�eAe<eFjI�d�fd�eAe<e>jJe<eFjG�d{fd�eAe<e>jJe<�dhfg
dde;defd�ed�eAeFeE�d�fge=db�dde;defed�eFjGd�feeFjGd�fge=db�dde;defdzeFjGd{fd�eAe>e<eEe<eE�d�fd�e4fd�eAe>e<eE�d�fd�eAe>e<eEe<eE�d�fd�eAeEe<�d�fd�eEd\fd�e>d\fd�edweAe>e<eBjC�d�fd�edweAe>e<eBjD�d�fd�e>dhfd�e?j@dhfd�e?dhfd�e>dhfd�eAe>e<e>e<e>�dhfd�eAe>e<e>�drfd�eAe>e<e>�fd�eAe>e<e>�fdvedweAe>e<eBjC�dtfdvedweAe>e<eBjD�dtfd�e>dtfdyeAe?e<e>�dtfed�e>jKd�fd�eAe>jKeE�fee>jKd�fgdde;defd�eEdhfd�e"fd�eFd�feeFd�fd�e1fgdde;defd�eEd\feeFjGfeeBjCfeeBjDfgdde;defd�e#fd�eEfdfe6fd�eEfgd�e!fd�eLfd�eMd�d��eLfgdae<d�fd�eBjNd\feeFfgd�eBjNd\fd�eMd�d��eLfgd�eBjNd\fd�eMd�d��eLfge=db�d�e fd�eFjOd�fd�eEd�fd�eEd�fd�e?feeFjOfgd�eEd�fdfe8fd�eFjPfeeFjPfeeFjPfeeFjPfd�eFjPfgd�eEd�fd�eEdhfd�eFjPfeeFjPfeeFjPfeeFjPfd�eFjPfgd�eFjOd�fdfe8fd�e/fd�e,fd�e-fd�e$feeLfeeLfeeLfd�eLfg
e=db�d�e feeFjOfge=db�dde;defd�e>d\fgdde;defe=db�d�e>d\fge=db�dde;defeeBjCfeeBjDfd�e>fd�eEd\fgeeFjGd�fgd�eEd�fd�eMd�d��eLfd�e<fge=db�dde;defd�e?d�fd�e?dhfeQd��ge=db�eeFjGd\fge=db�dfe6fd�eEdhfgeeFjGdhfgeeFjGdhfge=db�dde;defd�eRjSd�fd�eRjSd�fd�eRjSd�fd�eRjTd�fd�eEd�fd�eAe>jJe<e>jJ�d�fd�eAe>jJe<e>jJe<e>jJ�d�fd�eAe>jJe<e>jJe<e>jJ�d�fed�eFd�fd�eeFjOd�fd�eFjOd�feeBjCd�feeBjDd�fd�e#fd�eAe>jJe<e>jJe<e>jJ�fd�eAe>jJe<e>jJ�d�fd�eAe>jJe<e>jJ�d�fd�eAe>jJe<e>jJe<e>jJ�d�fd�eAe>jUe<e>jU�d�fd�eAe>jJe<e>jJ�d�fd�eAe>e<eFjG�d{fd}eAe>e<e>e<e>e<eFjG�d{fdzeFjGd{fd�eAe>jJe<e>jJe<eFjG�d{fd�eAe>jJe<eFjI�d�fd�eAe?e<e>�dtfd�e3fd�e2fd�e0fd�e+fd�e.fd�e5fd�eAe>jJe<e>jJ�d�fd�e*fd�e)fd�eAe>e<eE�fd�eAe>e<eE�fd�e7fd�e7fd�edweAe>e<�d�fd�edweAe>e<�d�fd�e�deAe>e<eFjGe<eE�d�f�deAe>jJe<e>jJ�f�de6f�de'f�de(f�deAe>jJe<e>jJ��df�deAe>jUe<e>jU��df�d	eAeEe<�d�f�d
e>f�deAe>jJe<e>jJ��dfd�edweBjCd�fd�edweBjDd�f�d
eAe>eE�f�deAe>eE�f�deAe>e<eE�fd�e>f�deAe>e<e>�fd�e>f�deAe>e<�dhf�deAe>e<eEeFjG�d{f�dedweFjPd�f�dedweFjPd�f�deeFjPd�f�deFjPd�f�deFjPd�f�deEfe�deFjO�dfe�deFjV�dfd�e�deAeFjVe>jKeRjT�feeFjOd�fgI�d�!ZW�dS(rz�
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ZXQueryZxqueryZxqyZxqZxqlZxqmz*.xqyz*.xqueryz*.xqz*.xqlz*.xqmztext/xqueryzapplication/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|[!"#$%()*+,\-./:;=?@\[\\\]^_`|~]ccs,|��t|�d�fVdg|_|��|_dS)N�r)�startr�group�stack�end�pos)�lexer�match�ctxr,r,r-�punctuation_root_callbackvsz%XQueryLexer.punctuation_root_callbackccs,|��t|�d�fVdg|_|��|_dS)Nr/r)r0r
r1r2r3r4)r5r6r7r,r,r-�operator_root_callback|sz"XQueryLexer.operator_root_callbackccs8|��tj|�d�fV|j�|j���|��|_	dS)Nr/)
r0rr(r1r2�append�xquery_parse_state�popr3r4)r5r6r7r,r,r-�popstate_tag_callback�sz!XQueryLexer.popstate_tag_callbackccs8|��tj|�d�fV|j�|j���|��|_	dS)Nr/)
r0r
�Docr1r2r:r;r<r3r4)r5r6r7r,r,r-�popstate_xmlcomment_callback�sz(XQueryLexer.popstate_xmlcomment_callbackccs�|��t|�d�fV|j��}|dkr�t�d|�d��rh|��t|�d�fV|j�d�|�	�|_
q�|j�d�|�	d�|_
n|j�|�|�	d�|_
dS)Nr/�occurrenceindicatorz[?*+]+��operator)r0rr1r;r<r%r6r2r:r3r4)r5r6r7Z
next_stater,r,r-�popstate_kindtest_callback�s
z&XQueryLexer.popstate_kindtest_callbackccsh|��t|�d�fVt|j�dkr0|j��n*t|j�dkrR|j�|j���ndg|_|��|_	dS)Nr/rr)
r0rr1�lenr;r2r<r:r3r4)r5r6r7r,r,r-�popstate_callback�szXQueryLexer.popstate_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/�element_content�	start_tag)	r0rr(r1r;r:r2r3r4)r5r6r7r,r,r-�+pushstate_element_content_starttag_callback�sz7XQueryLexer.pushstate_element_content_starttag_callbackccsB|��tj|�d�fV|j�d�|j�|jj�|�	�|_
dS)Nr/�
cdata_section)r0r
r>r1r2r:r;�stater<r3r4)r5r6r7r,r,r-� pushstate_cdata_section_callback�sz,XQueryLexer.pushstate_cdata_section_callbackccsB|��tj|�d�fV|j�|jj�|j�d�|�	�|_
dS)Nr/rG)r0rr(r1r;r:rJr<r2r3r4)r5r6r7r,r,r-�pushstate_starttag_callback�sz'XQueryLexer.pushstate_starttag_callbackccsd|��t|�d�fV|��t|�d�fV|��t|�d�fVdg|_|j�d�|��|_	dS)Nr/rA�rrB)
r0rr1rrr2r;r:r3r4)r5r6r7r,r,r-�!pushstate_operator_order_callback�sz-XQueryLexer.pushstate_operator_order_callbackccsd|��t|�d�fV|��t|�d�fV|��t|�d�fVdg|_|j�d�|��|_	dS)Nr/rArMrrB)
r0rr1rrr2r;r:r3r4)r5r6r7r,r,r-�pushstate_operator_map_callback�sz+XQueryLexer.pushstate_operator_map_callbackccsd|��t|�d�fV|��t|�d�fV|��t|�d�fVdg|_|j�d�|��|_	dS)Nr/rArMrrB)
r0rr1rrr2r;r:r3r4)r5r6r7r,r,r-� pushstate_operator_root_validate�sz,XQueryLexer.pushstate_operator_root_validateccsd|��t|�d�fV|��t|�d�fV|��t|�d�fVdg|_|j�d�|��|_dS)Nr/rArMrrB)	r0rr1rr2r;r:r3r4)r5r6r7r,r,r-�)pushstate_operator_root_validate_withmode�sz5XQueryLexer.pushstate_operator_root_validate_withmodeccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/�processing_instructionrB)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�2pushstate_operator_processing_instruction_callback�sz>XQueryLexer.pushstate_operator_processing_instruction_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/rRrF)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�9pushstate_element_content_processing_instruction_callback�szEXQueryLexer.pushstate_element_content_processing_instruction_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/rIrF)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�0pushstate_element_content_cdata_section_callback�sz<XQueryLexer.pushstate_element_content_cdata_section_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/rIrB)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�)pushstate_operator_cdata_section_callback�sz5XQueryLexer.pushstate_operator_cdata_section_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/�xml_commentrF)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�-pushstate_element_content_xmlcomment_callback�sz9XQueryLexer.pushstate_element_content_xmlcomment_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/rWrB)	r0r
r>r1r2r:r;r3r4)r5r6r7r,r,r-�&pushstate_operator_xmlcomment_callback�sz2XQueryLexer.pushstate_operator_xmlcomment_callbackccsh|��t|�d�fV|��t|�d�fV|��t|�d�fV|j�d�|j�d�|��|_	dS)Nr/rArM�kindtest)
r0rr1rrr;r:r2r3r4)r5r6r7r,r,r-�pushstate_kindtest_callback�sz'XQueryLexer.pushstate_kindtest_callbackccsh|��t|�d�fV|��t|�d�fV|��t|�d�fV|j�d�|j�d�|��|_	dS)Nr/rArMrB�
kindtestforpi)
r0rr1rrr;r:r2r3r4)r5r6r7r,r,r-�)pushstate_operator_kindtestforpi_callbacksz5XQueryLexer.pushstate_operator_kindtestforpi_callbackccsh|��t|�d�fV|��t|�d�fV|��t|�d�fV|j�d�|j�d�|��|_	dS)Nr/rArMrBrZ)
r0rr1rrr;r:r2r3r4)r5r6r7r,r,r-�$pushstate_operator_kindtest_callbacksz0XQueryLexer.pushstate_operator_kindtest_callbackccsj|��tj|�d�fV|��t|�d�fV|��t|�d�fV|j�d�|j�d�|�	�|_
dS)Nr/rArMr@rZ)r0rr(r1rrr;r:r2r3r4)r5r6r7r,r,r-�/pushstate_occurrenceindicator_kindtest_callbacksz;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackccs>|��tj|�d�fV|j�d�|j�d�|��|_dS)Nr/rBrG)	r0rr(r1r;r:r2r3r4)r5r6r7r,r,r-�$pushstate_operator_starttag_callbacksz0XQueryLexer.pushstate_operator_starttag_callbackccs8|��t|�d�fV|j�d�dg|_|��|_dS)Nr/rBr)r0rr1r;r:r2r3r4)r5r6r7r,r,r-� pushstate_operator_root_callback$sz,XQueryLexer.pushstate_operator_root_callbackccsd|��t|�d�fV|��t|�d�fV|��t|�d�fV|j�d�dg|_|��|_	dS)Nr/rArMrBr)
r0rr1rrr;r:r2r3r4)r5r6r7r,r,r-�*pushstate_operator_root_construct_callback*sz6XQueryLexer.pushstate_operator_root_construct_callbackccsB|��t|�d�fV|j��}|j�|�dg|_|��|_dS)Nr/r)	r0rr1r2r<r;r:r3r4)r5r6r7Z	cur_stater,r,r-�pushstate_root_callback2s

z#XQueryLexer.pushstate_root_callbackccs2|��tj|�d�fV|j�d�|��|_dS)Nr/rB)r0r�	Attributer1r2r:r3r4)r5r6r7r,r,r-�%pushstate_operator_attribute_callback9sz1XQueryLexer.pushstate_operator_attribute_callbackccs\|��t|�d�fV|��t|�d�fV|��t|�d�fV|j�d�|��|_dS)Nr/rArMrB)	r0rr1rrr;r:r3r4)r5r6r7r,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|exceptrzorder byzgroup byz%is|mod|order\s+by|stable\s+order\s+byzand|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)zascending|descending|defaultz(allowing)(\s+)(empty)Zexternalz(start|when|end)z(only)(\s+)(end)Z	collation�
uritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)z
(at)(\s+)(�,�=�;�
namespacedeclzinherit|no-inherit�	namespacez(default)(\s+)(element)zpreserve|no-preservez(\()(z
(\,)(\s+)(z\)z	(\s+)(\%)�annotationnamez(\s+)(variable)(\s+)(\$)z(\s+)(function)(\s+)�(z)(\()?rBz(:\*)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):=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|zexternal|atz(stable)(\s+)(order)(\s+)(by)z(castable|cast)(\s+)(as)z(treat)(\s+)(as)z(instance)(\s+)(of)zcase|asz:\*z(function|map|array)(\()z\{z(\))([*+?]?)z\*�
closekindtestz!(element|schema-element)(\s*)(\()z(\))z\?z(-->)z	[^-]{1,2}u\t|\r|\n|[ -퟿]|[-�]|ii���processing_instruction_contentz\?>z]]>z(/>)�>rF�"�quot_attribute_content�'�apos_attribute_contentrGz""z	\{\{|\}\}z''z</�end_tagz(<!--)z(<\?)z
(<!\[CDATA\[)z(<)z(>)zpreserve|stripzordered|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]+))!rhrgrBrmrqr�rsrlrirjrZr\rvrWrRrwrIrGrzr|rFr}r�r�r�rurr@r�r�r�r�rN)Xrrrr r!r"r#r$r;ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameZqnameZ	entityrefZcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr%r&�	MULTILINE�UNICODEr'r8r9r=r?rCrErHrKrLrNrOrPrQrSrTrUrVrXrYr[r]r^r_r`rarbrcrerfr	rrrr
�Wordrr
�Double�Singlerr�VariableZ	NamespaceZ	Decorator�DeclarationZTyperrr>r(rdrr�Float�IntegerZPseudor)r+r,r,r,r-r=s	












































c@seZdZdZdZddgZddgZddgZej	ej
BZd	efd
e
fde
jfde
jfged
�dejdfdedfed�gdedfgdedfed
�dedfdedfdefdejdfdedfdedfdejdfdejfdejfdejfdejfd ejfd!ejfd"ej fd#ej!fd$ejfgd%�Z"d&S)'rzr
    For QML files. See http://doc.qt.digia.com/4.7/qdeclarativeintroduction.html.

    .. versionadded:: 1.6
    ZQMLZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/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]?z0x[0-9a-fA-F]+z[0-9]+z"(\\\\|\\"|[^"])*"z'(\\\\|\\'|[^'])*')r�r�r�rN)#rrrr r!r"r#r$r%r&r�r'rr	r�r*rr
�Regexrr
rrr�ZReservedZConstantrZBuiltinZOtherrr�ZHexr�r�r+r,r,r,r-rsN


c@s�eZdZdZdZdgZdgZdgZej	Z
defdejdfd	ed
fgdejd
fgde
d
fd
ejd
fde
d
fded
fde
dfd	edfdejfgde
dfde
dfde
fded
fd	edfdejfdefd
ejfgdejfed�gd�ZdS)ra[
    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
    ZCirruZcirruz*.cirruztext/x-cirruz[^"\\\n]z\\�escaperyz#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�rN)rrrr r!r"r#r$r%r�r'r
ZEscaper
rr)r�
Whitespacerr�rr+r,r,r,r-r`s6




c@s^eZdZdZdZdgZdgZdgZej	Z
dZdefde
fgd	ejd
fdejd
fgdeeee��d
fdejdfed�ged�dedfdeeee��dfdedeed�dfdedeejd�dfdejd
fed�ged�defdedfed�gdefdeejee�ej�fd ed
fgd!efd"ee�d
fd#ee�d
fd$ed
fged%ejfd ed
fgd&�Zd'S)(rz5
    For Slim markup.

    .. versionadded:: 2.0
    ZSlimZslimz*.slimztext/x-slimz(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+�tagz	\#[\w:-]+z([ \t]*==?)(.*\n)rz[ \t]+[\w:-]+(?==)zhtml-attributes�plain�cssz[\w:-]+:[ \t]*\nz	(-)(.*\n)z#popz\|z*\n�/zslim-comment-blockz[\w:-]+z
eval-or-plainz[<>]{1,2}(?=[ \t=])z[ \t]+\nz#pop:2z([^#\n]|#[^{\n]|(\\\\)*\\#\{)+z(#\{)(.*?)(\})z\nroz"[^"]+"z
\'[^\']+\'z\w+�+)rr�z
eval-or-plain�contentr�r�zhtml-attributeszslim-comment-blockN)rrrr r!r"r#r$r%�
IGNORECASEr'Z_dotrrrZClassr)rrrrrdrrrr	ZPreprocr(r
ZInterpolr+r,r,r,r-r�sN




)$r r%Zpygments.lexerrrrrrrZpygments.tokenrr	r
rrr
rrrZ
pygments.utilrZpygments.lexers.cssrrZpygments.lexers.htmlrZpygments.lexers.javascriptrZpygments.lexers.rubyr�__all__rrrrrr,r,r,r-�<module>
s& ,!_I7