3

V'ícežã@sòdZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZmZddlmZddlmZddlmZd	d
ddd
gZGdd	„d	eƒZGdd„deƒZGdd„deƒZ Gdd
„d
eƒZ!Gdd
„d
eƒZ"dS)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°eZdZdZdZdZdddgZddgZd	d
gZe	j
Zddee
jeeƒe
jƒfd
ee
je
jeee
jƒfdee
jeje
jƒfdeeeƒeeƒeeƒƒfdeeƒfdeeƒfgiZdS)rzt
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.

    .. versionadded:: 1.4
    ZDuelzhttp://duelengine.org/ZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/x-jbstÚrootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesÚreÚDOTALLÚflagsrrÚTagrrÚFunctionrr
r	Ú	MultilinerÚtokens©r-r-ú;/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/webmisc.pyrs&

cl@s¢
eZdZdZdZdZdddddgZd	d
ddd
gZddgZgZ	dZ
de
dZde
efZdZ
de
dZde
efZdeefZeZdeefZdZdZdededZdededZdZd Zd!ZejejBZd"d#„Zd$d%„Zd&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„Z9dZe:fd[e:d\fd]e:d^fd_e:fgd`e;fge<daƒdbe#fd[e:dcfdde8fdee=dffdge=dffdhe=dffdie=dffdje>j?dffdke>j?dffdle=dffdmefdnefdoe@e=e;e=ƒdpfdqe@e=e;e=ƒdrfdse@e=e;e=ƒdrfdtedue@e=e;eAjBƒdrfdtedue@e=e;eAjCƒdrfdve=drfdwe@eDe;e=ƒdrfdxeEjFdyfdze@e=e;eEjFƒdyfd{e@e=e;e=e;e=e;eEjFƒdyfd|eDfd}e@e=e;e=ƒfd~e=d\fde@e=e;e=ƒfd€e=fde=dffd‚e@e=e;e=ƒdffdƒe=d„fd…e=dffd†e>feeAjBfeeAjCfd‡e@e=e;ƒdffg$eeAjBd^feeAjCd^fge<daƒd[e:dcfdˆedue@e=e;eAjBƒfdˆedue@e=e;eAjCƒfeeAjBfeeAjCfd‰eDfdŠe>fd‹eDdffeeEjGfg
e<daƒd[e:dcfeeAjBdŒfeeAjCdŒfde=dffdŽe=dŒfde@e=eHe=ƒfde=fd‰eDfg	d[e:dcfeeEjIfd‘edue@eDeAjBƒfd‘edue@eDeAjCƒfd’edue@eDeHeAjBƒfd’edue@eDeHeAjCƒfd“eDfd”e@eHeEjIƒd•fd–e@eHe=jJeHeEjFƒdyfd—e@eHe=jJeHƒdffg
d[e:dcfd˜ed™e@eEeDƒdšfge<daƒd[e:dcfed›eEjFdšfeeEjFdšfge<daƒd[e:dcfdxeEjFdyfdœe@e=eHeDeHeDƒdšfde4fdže@e=eHeDƒdfd¡e@e=eHeDeHeDƒdŸfd¢e@eDeHƒd£fd‹eDd^fd¤e=d^fdˆedue@e=eHeAjBƒdŒfdˆedue@e=eHeAjCƒdŒfd¥e=dffd¦e>j?dffd§e>dffd¨e=dffd©e@e=eHe=eHe=ƒdffdªe@e=eHe=ƒdpfd«e@e=eHe=ƒfd¬e@e=eHe=ƒfdtedue@e=eHeAjBƒdrfdtedue@e=eHeAjCƒdrfd­e=drfdwe@e>eHe=ƒdrfed®e=jKdšfd¯e@e=jKeDƒfee=jKdŸfgd[e:dcfd°eDdffd±e"fd²eEd³feeEd³fd´e1fgd[e:dcfd“eDd^feeEjFfeeAjBfeeAjCfgd[e:dcfdµe#fd‰eDfdde6fd¶eDfgd·e!fd¸eLfd¹eLfgd`eHdºfd»eAjMd^feeEfgd»eAjMd^fd¹eLfgd¼eAjMd^fd¹eLfge<daƒd½e fd¾eEjNd¿fdÀeDdÁfdÂeDdÃfdŠe>feeEjNfgdÀeDdÄfdde8fdÅeEjOfeeEjOfeeEjOfeeEjOfdÆeEjOfgdÂeDdÄfd°eDdffdÇeEjOfeeEjOfeeEjOfeeEjOfdÆeEjOfgdÈeEjNdÉfdde8fdÊe/fdËe,fdÌe-fdÍe$feeLfeeLfeeLfdÆeLfg
e<daƒdÎe feeEjNfge<daƒd[e:dcfdÏe=d^fgd[e:dcfe<daƒdÐe=d^fge<daƒd[e:dcfeeAjBfeeAjCfdÑe=fd‹eDd^fgeeEjFdÒfgdÓeDdšfd¹eLfdÔe;fge<daƒd[e:dcfdÕe>dšfdÖe>dffePdšƒge<daƒeeEjFd^fge<daƒdde6fd×eDdffgeeEjFdffgeeEjFdffge<daƒd[e:dcfdØeQjRdšfdÙeQjRdšfdÚeQjRdšfdÛeQjSdšfdÜeDdšfdÝe@e=jJeHe=jJƒdšfdÞe@e=jJeHe=jJeHe=jJƒdšfdße@e=jJeHe=jJeHe=jJƒdšfed®eEdšfdàeeEjNdšfd²eEjNdšfeeAjBdšfeeAjCdšfdáe#fdâe@e=jJe;e=jJe;e=jJƒfdãe@e=jJe;e=jJƒdŒfdäe@e=jJe;e=jJƒdŒfdåe@e=jJe;e=jJe;e=jJƒdæfdçe@e=jTe;e=jTƒdæfdèe@e=jJe;e=jJƒdæfdée@e=e;eEjFƒdyfd{e@e=e;e=e;e=e;eEjFƒdyfdxeEjFdyfdêe@e=jJe;e=jJe;eEjFƒdyfdëe@e=jJe;eEjIƒd•fdìe@e>e;e=ƒdrfdíe3fdîe2fdÊe0fdËe+fdÌe.fdÍe5fdïe@e=jJeHe=jJƒdðfdñe*fdòe)fdóe@e=e;eDƒfdôe@e=e;eDƒfdõe7fdöe7fd÷edue@e=e;ƒdøfdùedue@e=e;ƒdúfdûedüe@e=e;eEjFe;eDƒdšfdýe@e=jJe;e=jJƒfdþe6fdÿe'fde(fde@e=jJe;e=jJƒdfde@e=jTe;e=jTƒdfde@eDe;ƒd£fde=fde@e=jJe;e=jJƒdfdˆedueAjBdŒfdˆedueAjCdŒfd	e@e=eDƒfd
e@e=eDƒfde@e=e;eDƒfd¤e=fde@e=e;e=ƒfd…e=fd
e@e=e;ƒdffde@e=e;eDeEjFƒdyfdedueEjOdšfdedueEjOdšfdeeEjOdšfdeEjOdšfdeEjOdšfdeDfedeEjNdfedeEjUdfd˜ede@eEjUe=jKeQjSƒfeeEjNdšfgIdœ!ZVdS(rz…
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ZXQueryzhttps://www.w3.org/XML/Query/ZxqueryZxqyZxqZxqlZxqmz*.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,|jƒt|jdƒfVdg|_|jƒ|_dS)Nér)ÚstartrÚgroupÚstackÚendÚpos)ÚlexerÚmatchÚctxr-r-r.Úpunctuation_root_callbacktsz%XQueryLexer.punctuation_root_callbackccs,|jƒt|jdƒfVdg|_|jƒ|_dS)Nr0r)r1r
r2r3r4r5)r6r7r8r-r-r.Úoperator_root_callbackzsz"XQueryLexer.operator_root_callbackccs>|jƒtj|jdƒfV|jr0|jj|jjƒƒ|jƒ|_	dS)Nr0)
r1rr)r2Úxquery_parse_stater3ÚappendÚpopr4r5)r6r7r8r-r-r.Úpopstate_tag_callback€sz!XQueryLexer.popstate_tag_callbackccs8|jƒtj|jdƒfV|jj|jjƒƒ|jƒ|_	dS)Nr0)
r1r
ÚDocr2r3r<r;r=r4r5)r6r7r8r-r-r.Úpopstate_xmlcomment_callback†sz(XQueryLexer.popstate_xmlcomment_callbackccsž|jƒt|jdƒfV|jjƒ}|dkr‚tjd|jdƒƒrh|jƒt|jdƒfV|jjdƒ|j	ƒ|_
qš|jjdƒ|j	dƒ|_
n|jj|ƒ|j	dƒ|_
dS)Nr0Úoccurrenceindicatorz[?*+]+éÚoperator)r1rr2r;r=r&r7r3r<r4r5)r6r7r8Ú
next_stater-r-r.Úpopstate_kindtest_callback‹s
z&XQueryLexer.popstate_kindtest_callbackccsv|jƒt|jdƒfVt|jƒdkr>|jjƒ|jshdg|_n*t|jƒdkr`|jj|jjƒƒndg|_|jƒ|_	dS)Nr0rr)
r1rr2Úlenr;r3r=r<r4r5)r6r7r8r-r-r.Úpopstate_callbackšs

zXQueryLexer.popstate_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0Úelement_contentÚ	start_tag)	r1rr)r2r;r<r3r4r5)r6r7r8r-r-r.Ú+pushstate_element_content_starttag_callbackªsz7XQueryLexer.pushstate_element_content_starttag_callbackccsB|jƒtj|jdƒfV|jjdƒ|jj|jjƒ|j	ƒ|_
dS)Nr0Ú
cdata_section)r1r
r?r2r3r<r;Ústater=r4r5)r6r7r8r-r-r.Ú pushstate_cdata_section_callback°sz,XQueryLexer.pushstate_cdata_section_callbackccsB|jƒtj|jdƒfV|jj|jjƒ|jjdƒ|j	ƒ|_
dS)Nr0rI)r1rr)r2r;r<rLr=r3r4r5)r6r7r8r-r-r.Úpushstate_starttag_callback¶sz'XQueryLexer.pushstate_starttag_callbackccsd|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfVdg|_|jjdƒ|jƒ|_	dS)Nr0rBérrC)
r1rr2rrr3r;r<r4r5)r6r7r8r-r-r.Ú!pushstate_operator_order_callback¼sz-XQueryLexer.pushstate_operator_order_callbackccsd|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfVdg|_|jjdƒ|jƒ|_	dS)Nr0rBrOrrC)
r1rr2rrr3r;r<r4r5)r6r7r8r-r-r.Úpushstate_operator_map_callbackÄsz+XQueryLexer.pushstate_operator_map_callbackccsd|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfVdg|_|jjdƒ|jƒ|_	dS)Nr0rBrOrrC)
r1rr2rrr3r;r<r4r5)r6r7r8r-r-r.Ú pushstate_operator_root_validateÌsz,XQueryLexer.pushstate_operator_root_validateccsd|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfVdg|_|jjdƒ|jƒ|_dS)Nr0rBrOrrC)	r1rr2rr3r;r<r4r5)r6r7r8r-r-r.Ú)pushstate_operator_root_validate_withmodeÔsz5XQueryLexer.pushstate_operator_root_validate_withmodeccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0Úprocessing_instructionrC)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú2pushstate_operator_processing_instruction_callbackÜsz>XQueryLexer.pushstate_operator_processing_instruction_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0rTrH)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú9pushstate_element_content_processing_instruction_callbackâszEXQueryLexer.pushstate_element_content_processing_instruction_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0rKrH)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú0pushstate_element_content_cdata_section_callbackèsz<XQueryLexer.pushstate_element_content_cdata_section_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0rKrC)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú)pushstate_operator_cdata_section_callbackîsz5XQueryLexer.pushstate_operator_cdata_section_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0Úxml_commentrH)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú-pushstate_element_content_xmlcomment_callbackôsz9XQueryLexer.pushstate_element_content_xmlcomment_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0rYrC)	r1r
r?r2r3r<r;r4r5)r6r7r8r-r-r.Ú&pushstate_operator_xmlcomment_callbackúsz2XQueryLexer.pushstate_operator_xmlcomment_callbackccsh|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfV|jjdƒ|jjdƒ|jƒ|_	dS)Nr0rBrOÚkindtest)
r1rr2rrr;r<r3r4r5)r6r7r8r-r-r.Úpushstate_kindtest_callbacksz'XQueryLexer.pushstate_kindtest_callbackccsh|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfV|jjdƒ|jjdƒ|jƒ|_	dS)Nr0rBrOrCÚ
kindtestforpi)
r1rr2rrr;r<r3r4r5)r6r7r8r-r-r.Ú)pushstate_operator_kindtestforpi_callbacksz5XQueryLexer.pushstate_operator_kindtestforpi_callbackccsh|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfV|jjdƒ|jjdƒ|jƒ|_	dS)Nr0rBrOrCr\)
r1rr2rrr;r<r3r4r5)r6r7r8r-r-r.Ú$pushstate_operator_kindtest_callbacksz0XQueryLexer.pushstate_operator_kindtest_callbackccsj|jƒtj|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfV|jjdƒ|jjdƒ|j	ƒ|_
dS)Nr0rBrOrAr\)r1rr)r2rrr;r<r3r4r5)r6r7r8r-r-r.Ú/pushstate_occurrenceindicator_kindtest_callbacksz;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackccs>|jƒtj|jdƒfV|jjdƒ|jjdƒ|jƒ|_dS)Nr0rCrI)	r1rr)r2r;r<r3r4r5)r6r7r8r-r-r.Ú$pushstate_operator_starttag_callback sz0XQueryLexer.pushstate_operator_starttag_callbackccs8|jƒt|jdƒfV|jjdƒdg|_|jƒ|_dS)Nr0rCr)r1rr2r;r<r3r4r5)r6r7r8r-r-r.Ú pushstate_operator_root_callback&sz,XQueryLexer.pushstate_operator_root_callbackccsd|jƒt|jdƒfV|jƒt|jdƒfV|jƒt|jdƒfV|jjdƒdg|_|jƒ|_	dS)Nr0rBrOrCr)
r1rr2rrr;r<r3r4r5)r6r7r8r-r-r.Ú*pushstate_operator_root_construct_callback,sz6XQueryLexer.pushstate_operator_root_construct_callbackccsB|jƒt|jdƒfV|jjƒ}|jj|ƒdg|_|jƒ|_dS)Nr0r)	r1rr2r3r=r;r<r4r5)r6r7r8Z	cur_stater-r-r.Úpushstate_root_callback4s

z#XQueryLexer.pushstate_root_callbackccs2|jƒtj|jdƒfV|jjdƒ|jƒ|_dS)Nr0rC)r1rÚ	Attributer2r3r<r4r5)r6r7r8r-r-r.Ú%pushstate_operator_attribute_callback;sz1XQueryLexer.pushstate_operator_attribute_callbackz[^:()]+z\(:z#pushz:\)z#popz[:()]z\s+Ú
whitespacez(\})Ú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)(\()?rCz(:\*)z(void)(\s*)(\()(\s*)(\))zr(element|attribute|schema-element|schema-attribute|comment|text|node|binary|document-node|empty-sequence)(\s*)(\()z!(processing-instruction)(\s*)(\()rAr^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):=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|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}z@\t|\r|\n|[\u0020-\uD7FF]|[\uE000-\uFFFD]|[\U00010000-\U0010FFFF]Úprocessing_instruction_contentz\?>z]]>z(/>)ú>rHú"Úquot_attribute_contentú'Úapos_attribute_contentrIz""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]+))!rirhrCrnrrrrtrmrjrkr\r^rwrYrTrxrKrIr{r}rHr~r‚r…r†rvr€rArˆr‰r„rƒrN)rAr^)Wrrrr r!r"r#r$r%r;ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameÚqnameÚ	entityrefÚcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr&r'Ú	MULTILINEr(r9r:r>r@rErGrJrMrNrPrQrRrSrUrVrWrXrZr[r]r_r`rarbrcrdrergr	rrrr
ÚWordrr
ÚDoubleÚSinglerrÚVariableÚ	NamespacerZ	DecoratorÚDeclarationÚTyperr?r)rfrrÚFloatÚIntegerZPseudor*r,r-r-r-r.r:s6	
















































c@seZdZdZdZdZddgZddgZdd	gZe	j
e	jBZd
e
fdefdejfd
ejfgedƒdejdfde
d(fedƒgde
dfgde
dfedƒdedfdedfdefdejdfdedfdedfdejdfdejfdejfdejfd ejfd!ejfd"ej fd#ej!fd$ej"fd%ejfgd&œZ#d'S))rz3
    For QML files.

    .. versionadded:: 1.6
    ZQMLz+https://doc.qt.io/qt-6/qmlapplications.htmlZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/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]?z0x[0-9a-fA-F]+z[0-9]+z"(\\\\|\\[^\\]|[^"\\])*"z'(\\\\|\\[^\\]|[^'\\])*')r—ršr™rN)r˜r™)$rrrr r!r"r#r$r%r&r'rr(rr	rr+rr
ÚRegexrr
rrr“ZReservedÚConstantrZBuiltinZOtherrr•ZHexr–rr,r-r-r-r.r-sP


c@sæeZdZdZdZdZdgZdgZdgZe	j
Zdefdej
d	fd
edfgdej
dfgd
edfdejdfdedfdedfdedfd
edfdejfgdedfdedfdefdedfd
edfdejfdefdejfgdejfedƒgdœZdS)ra
    * 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
    ZCirruzhttp://cirru.org/Zcirruz*.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¢rN)ržr )r¢r¡)rrrr r!r"r#r$r%r&rr(r
ZEscaper
rr*rrrr‘rr,r-r-r-r.rws8	




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\nrpz"[^"]+"z
\'[^\']+\'z\w+ú+)rr¥z
eval-or-plainÚcontentr£r¤zhtml-attributeszslim-comment-blockN)rrrr r!r#r$r%r&Ú
IGNORECASEr(Z_dotrrrZClassr*rrrrrfrrrr	ZPreprocr)r
ZInterpolr,r-r-r-r.r¬sN




)#r r&Zpygments.lexerrrrrrrZpygments.tokenrr	r
rrr
rrrrZpygments.lexers.cssrrZpygments.lexers.htmlrZpygments.lexers.javascriptrZpygments.lexers.rubyrÚ__all__rrrrrr-r-r-r.Ú<module>	s$ 0 xJ5