U
    祡c                     @   s   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ d	d
dddgZG dd	 d	eZG dd deZG dd deZ G dd deZ!G dd
 d
eZ"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)
RegexLexerExtendedRegexLexerincludebygroupsdefaultusing)
TextCommentOperatorKeywordNameStringNumberPunctuationLiteral
Whitespace)_indentation_starts_block)	HtmlLexer)JavascriptLexer)	RubyLexer	DuelLexer	SlimLexerXQueryLexerQmlLexer
CirruLexerc                
   @   s   e Zd ZdZdZdZdddgZddgZd	d
gZe	j
ZddeejeeejfdeejejeeejfdeejejejfdeeeeeeefdeefdeefgiZdS )r   zx
    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-jbstrootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesreDOTALLflagsr   r   Tagr   r   Functionr   r   r	   	Multiliner   tokens r-   r-   ;/tmp/pip-unpacked-wheel-6wad6tea/pygments/lexers/webmisc.pyr      s6   
 

c                l   @   s  e Zd ZdZdZdZdddddgZd	d
dddgZddgZg Z	dZ
de
 d Zde
ef ZdZde d Zdeef Zdeef ZeZdeef ZdZdZde d e d Zde d e d ZdZd Zd!ZejejB Zd"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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jPdfdeGjPdfdeFfed eGjOdfed eGjVdfde d eAeGjVe>jLeRjTfeeGjOdfgId!ZWdS (  r   z
    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|[!"#$%()*+,\-./:;=?@\[\\\]^_`|~]c                 c   s,   |  t|dfV  dg|_| |_d S N   r   )startr   groupstackendposlexermatchctxr-   r-   r.   punctuation_root_callbackt   s    z%XQueryLexer.punctuation_root_callbackc                 c   s,   |  t|dfV  dg|_| |_d S r0   )r2   r
   r3   r4   r5   r6   r7   r-   r-   r.   operator_root_callbackz   s    z"XQueryLexer.operator_root_callbackc                 c   s>   |  tj|dfV  | jr0|j| j  | |_	d S Nr1   )
r2   r   r)   r3   xquery_parse_stater4   appendpopr5   r6   r7   r-   r-   r.   popstate_tag_callback   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  tj|dfV  |j| j  | |_	d S r=   )
r2   r   Docr3   r4   r?   r>   r@   r5   r6   r7   r-   r-   r.   popstate_xmlcomment_callback   s    z(XQueryLexer.popstate_xmlcomment_callbackc                 c   s   |  t|dfV  | j }|dkrtd|drh|  t|dfV  |jd |	 |_
q|jd |	d|_
n|j| |	d|_
d S )Nr1   occurrenceindicatorz[?*+]+   operator)r2   r   r3   r>   r@   r&   r9   r4   r?   r5   r6   )r8   r9   r:   
next_stater-   r-   r.   popstate_kindtest_callback   s    
z&XQueryLexer.popstate_kindtest_callbackc                 c   sv   |  t|dfV  t| jdkr>|j  |jshdg|_n*t|jdkr`|j| j  ndg|_| |_	d S )Nr1   r   r   )
r2   r   r3   lenr>   r4   r@   r?   r5   r6   r7   r-   r-   r.   popstate_callback   s    

zXQueryLexer.popstate_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr1   element_content	start_tag	r2   r   r)   r3   r>   r?   r4   r5   r6   r7   r-   r-   r.   +pushstate_element_content_starttag_callback   s    z7XQueryLexer.pushstate_element_content_starttag_callbackc                 c   sB   |  tj|dfV  |jd | j|jj |	 |_
d S )Nr1   cdata_section)r2   r   rB   r3   r4   r?   r>   stater@   r5   r6   r7   r-   r-   r.    pushstate_cdata_section_callback   s    z,XQueryLexer.pushstate_cdata_section_callbackc                 c   sB   |  tj|dfV  | j|jj |jd |	 |_
d S )Nr1   rL   )r2   r   r)   r3   r>   r?   rP   r@   r4   r5   r6   r7   r-   r-   r.   pushstate_starttag_callback   s    z'XQueryLexer.pushstate_starttag_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S Nr1   rE      r   rF   
r2   r   r3   r   r   r4   r>   r?   r5   r6   r7   r-   r-   r.   !pushstate_operator_order_callback   s    z-XQueryLexer.pushstate_operator_order_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S rS   rU   r7   r-   r-   r.   pushstate_operator_map_callback   s    z+XQueryLexer.pushstate_operator_map_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S rS   rU   r7   r-   r-   r.    pushstate_operator_root_validate   s    z,XQueryLexer.pushstate_operator_root_validatec                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_d S rS   )	r2   r   r3   r   r4   r>   r?   r5   r6   r7   r-   r-   r.   )pushstate_operator_root_validate_withmode   s    z5XQueryLexer.pushstate_operator_root_validate_withmodec                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   processing_instructionrF   	r2   r   rB   r3   r4   r?   r>   r5   r6   r7   r-   r-   r.   2pushstate_operator_processing_instruction_callback   s    z>XQueryLexer.pushstate_operator_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   rZ   rK   r[   r7   r-   r-   r.   9pushstate_element_content_processing_instruction_callback   s    zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   rO   rK   r[   r7   r-   r-   r.   0pushstate_element_content_cdata_section_callback   s    z<XQueryLexer.pushstate_element_content_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   rO   rF   r[   r7   r-   r-   r.   )pushstate_operator_cdata_section_callback   s    z5XQueryLexer.pushstate_operator_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   xml_commentrK   r[   r7   r-   r-   r.   -pushstate_element_content_xmlcomment_callback   s    z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr1   r`   rF   r[   r7   r-   r-   r.   &pushstate_operator_xmlcomment_callback   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr1   rE   rT   kindtest
r2   r   r3   r   r   r>   r?   r4   r5   r6   r7   r-   r-   r.   pushstate_kindtest_callback   s    z'XQueryLexer.pushstate_kindtest_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr1   rE   rT   rF   kindtestforpird   r7   r-   r-   r.   )pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr1   rE   rT   rF   rc   rd   r7   r-   r-   r.   $pushstate_operator_kindtest_callback  s    z0XQueryLexer.pushstate_operator_kindtest_callbackc                 c   sj   |  tj|dfV  |  t|dfV  |  t|dfV  | jd |jd |	 |_
d S )Nr1   rE   rT   rD   rc   )r2   r   r)   r3   r   r   r>   r?   r4   r5   r6   r7   r-   r-   r.   /pushstate_occurrenceindicator_kindtest_callback  s    z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr1   rF   rL   rM   r7   r-   r-   r.   $pushstate_operator_starttag_callback   s    z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s8   |  t|dfV  | jd dg|_| |_d S )Nr1   rF   r   )r2   r   r3   r>   r?   r4   r5   r6   r7   r-   r-   r.    pushstate_operator_root_callback&  s    z,XQueryLexer.pushstate_operator_root_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  | jd dg|_| |_	d S )Nr1   rE   rT   rF   r   rd   r7   r-   r-   r.   *pushstate_operator_root_construct_callback,  s    z6XQueryLexer.pushstate_operator_root_construct_callbackc                 c   sB   |  t|dfV  |j }| j| dg|_| |_d S r0   )	r2   r   r3   r4   r@   r>   r?   r5   r6   )r8   r9   r:   Z	cur_stater-   r-   r.   pushstate_root_callback4  s
    
z#XQueryLexer.pushstate_root_callbackc                 c   s2   |  tj|dfV  |jd | |_d S )Nr1   rF   )r2   r   	Attributer3   r4   r?   r5   r6   r7   r-   r-   r.   %pushstate_operator_attribute_callback;  s    z1XQueryLexer.pushstate_operator_attribute_callbackc                 c   s\   |  t|dfV  |  t|dfV  |  t|dfV  | jd | |_d S )Nr1   rE   rT   rF   )	r2   r   r3   r   r   r>   r?   r5   r6   r7   r-   r-   r.   pushstate_operator_callback@  s
    z'XQueryLexer.pushstate_operator_callbackz[^:()]+z\(:#pushz:\)#popz[:()]\s+
whitespacez(\})commentz(\{)z then|else|external|at|div|exceptr   zorder 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)\bitemtypez(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	collationuritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)z
(at)(\s+)(,=;namespacedeclzinherit|no-inherit	namespacez(default)(\s+)(element)zpreserve|no-preservez(\()(z
(\,)(\s+)(\)z	(\s+)(\%)annotationnamez(\s+)(variable)(\s+)(\$)z(\s+)(function)(\s+)(z)(\()?rF   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*)(\())rD   rf   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rD   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(/>)>rK   "quot_attribute_content'apos_attribute_contentrL   z""z	\{\{|\}\}z''z</end_tagz(<!--)z(<\?)z(<!\[CDATA\[)z(<)z(>)zpreserve|stripzordered|unorderedencodingpragmacontentsz#\)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]+))!ru   rt   rF   rz   r~   r   r   ry   rv   rw   rc   rf   r   r`   rZ   r   rO   rL   r   r   rK   r   r   r   r   r   r   rD   r   r   r   r   r   N)Xr   r   r   r    r!   r"   r#   r$   r%   r>   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameqname	entityrefcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr&   r'   	MULTILINEr(   r;   r<   rA   rC   rH   rJ   rN   rQ   rR   rV   rW   rX   rY   r\   r]   r^   r_   ra   rb   re   rg   rh   ri   rj   rk   rl   rm   ro   rp   r	   r   r   r   r
   Wordr   r   r   DoubleSingler   r   Variable	NamespaceZ	DecoratorDeclarationTyper   rB   r)   rn   r   r   FloatIntegerZPseudor*   r,   r-   r-   r-   r.   r   :   s  	

  
 
 
 
 
 
 
 =





  

 

 
  
 
 
 
 
-	







	







   


      
  
 
 
   
   c                   @   s  e Zd ZdZdZdZddgZddgZdd	gZe	j
e	jB Zd
efdefdejfdejfgeddejdfdedfedgdedfgdedfeddedfdedfdefdejdfdedfdedfdejdfdejfdejfdejfd ejfd!ejfd"ej fd#ej!fd$ej"fd%ejfgd&Z#d'S )(r   z3
    For QML files.

    .. versionadded:: 1.6
    ZQMLz+https://doc.qt.io/qt-6/qmlapplications.htmlZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlrs   z<!--z//.*?\nz	/\*.*?\*/commentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)rr   z(?=/))rr   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]?z0x[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   Regexr   r
   r   r   r   ZReservedConstantr   ZBuiltinZOtherr   r   ZHexr   r   r,   r-   r-   r-   r.   r     sl   	   
c                   @   s   e Zd ZdZdZdZdgZdgZdgZe	j
Zdefdejd	fd
edfgdejdfgdedfdejdfdedfdedfdedfd
edfdejfgdedfdedfdefdedfd
edfdejfdefdejfgdejfedgdZdS )r   a  
    * 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*.cirruztext/x-cirruz	[^"\\\n]+z\\escaper   rr   .z\,z	[^\s"()]+r   z(?=\n)z\(rq   )rr   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(   r   ZEscaper
   r   r*   r   r   r   r   r   r,   r-   r-   r-   r.   r   c  sD   




c                   @   s^  e Zd ZdZdZdgZdgZdgZej	Z
dZdefdefgd	ejd
fdejd
fgdeeeedfdejdfedgeddedfdeeeedfde d eeddfde d eejddfdejd
fedgeddefdedfedgdefdeejeeejfd edfgd!efd"eed
fd#eed
fd$ed
fged% ejfd edfgd&Zd'S )(r   z5
    For Slim markup.

    .. versionadded:: 2.0
    ZSlimZslimz*.slimztext/x-slimz(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+tagz	\#[\w:-]+z([ \t]*==?)(.*\n)r   z[ \t]+[\w:-]+(?==)html-attributesplaincssz[\w:-]+:[ \t]*\nz	(-)(.*\n)rr   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(   Z_dotr   r   r   ZClassr*   r   r   r   r   rn   r   r   r   r	   ZPreprocr)   r   ZInterpolr,   r-   r-   r-   r.   r     sf   


	
)#r    r&   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   r   Zpygments.lexers.cssr   r   Zpygments.lexers.htmlr   Zpygments.lexers.javascriptr   Zpygments.lexers.rubyr   __all__r   r   r   r   r   r-   r-   r-   r.   <module>   s$   
 0      dJ5