o
    	ȷe                     @   s   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ g d	ZG d
d deZG dd deZG dd deZ G dd deZ!G dd deZ"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 ZdZdZdZg dZddgZddgZe	j
Zd	d
eejeeejfdeejejeeejfdeejejejfdeeeeeeefdeefdeefgiZdS )r   zx
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    
    .. versionadded:: 1.4
    Duelzhttp://duelengine.org/)dueljbstz
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 r0   r0   N/var/www/ideatree/venv/lib/python3.10/site-packages/pygments/lexers/webmisc.pyr      s6    

r   c                   @   s  e Zd ZdZdZdZg dZg dZddgZg Z	dZ
d	e
 d
 Zde
ef ZdZd	e d
 Zdeef Zdeef ZeZdeef ZdZdZde d e d Zde d e d ZdZdZdZejejB Zdd Zdd Zdd 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(d0d1 Z)d2d3 Z*d4d5 Z+d6d7 Z,d8d9 Z-d:d; Z.d<d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BdafdeAe>eBeFeGjHdtfde dp eGjPd]fde dp eGjPd]fde eGjPd]fdeGjPd]fdeGjPd]fdeFfed eGjOdfed eGjVdfde d eAeGjVe>jLeRjTfeeGjOd]fZWdS (  r   z
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    XQueryzhttps://www.w3.org/XML/Query/)xqueryxqyxqxqlxqm)z*.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   .    |  t|dfV  dg|_| |_d S N   r   )startr   groupstackendposlexermatchctxr0   r0   r1   punctuation_root_callbackt      z%XQueryLexer.punctuation_root_callbackc                 c   r9   r:   )r<   r
   r=   r>   r?   r@   rA   r0   r0   r1   operator_root_callbackz   rF   z"XQueryLexer.operator_root_callbackc                 c   s@    |  tj|dfV  | jr|j| j  | |_	d S Nr;   )
r<   r   r,   r=   xquery_parse_stater>   appendpopr?   r@   rA   r0   r0   r1   popstate_tag_callback   s
   z!XQueryLexer.popstate_tag_callbackc                 c   s:    |  tj|dfV  |j| j  | |_	d S rH   )
r<   r   Docr=   r>   rJ   rI   rK   r?   r@   rA   r0   r0   r1   popstate_xmlcomment_callback   s   z(XQueryLexer.popstate_xmlcomment_callbackc                 c   s    |  t|dfV  | j }|dkrDtd|dr6|  t|dfV  |jd |	 |_
d S |jd |	d|_
d S |j| |	d|_
d S )Nr;   occurrenceindicatorz[?*+]+   operator)r<   r   r=   rI   rK   r)   rC   r>   rJ   r?   r@   )rB   rC   rD   
next_stater0   r0   r1   popstate_kindtest_callback   s   
z&XQueryLexer.popstate_kindtest_callbackc                 c   sx    |  t|dfV  t| jdkr |j  |jsdg|_nt|jdkr1|j| j  ndg|_| |_	d S )Nr;   r   r   )
r<   r   r=   lenrI   r>   rK   rJ   r?   r@   rA   r0   r0   r1   popstate_callback   s   
zXQueryLexer.popstate_callbackc                 c   @    |  tj|dfV  | jd |jd | |_d S )Nr;   element_content	start_tag	r<   r   r,   r=   rI   rJ   r>   r?   r@   rA   r0   r0   r1   +pushstate_element_content_starttag_callback   
   z7XQueryLexer.pushstate_element_content_starttag_callbackc                 c   sD    |  tj|dfV  |jd | j|jj |	 |_
d S )Nr;   cdata_section)r<   r   rM   r=   r>   rJ   rI   staterK   r?   r@   rA   r0   r0   r1    pushstate_cdata_section_callback   s
   z,XQueryLexer.pushstate_cdata_section_callbackc                 c   sD    |  tj|dfV  | j|jj |jd |	 |_
d S )Nr;   rX   )r<   r   r,   r=   rI   rJ   r]   rK   r>   r?   r@   rA   r0   r0   r1   pushstate_starttag_callback   s
   z'XQueryLexer.pushstate_starttag_callbackc                 c   f    |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S Nr;   rP      r   rQ   
r<   r   r=   r   r   r>   rI   rJ   r?   r@   rA   r0   r0   r1   !pushstate_operator_order_callback      z-XQueryLexer.pushstate_operator_order_callbackc                 c   r`   ra   rc   rA   r0   r0   r1   pushstate_operator_map_callback   re   z+XQueryLexer.pushstate_operator_map_callbackc                 c   r`   ra   rc   rA   r0   r0   r1    pushstate_operator_root_validate   re   z,XQueryLexer.pushstate_operator_root_validatec                 c   sf    |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_d S ra   )	r<   r   r=   r   r>   rI   rJ   r?   r@   rA   r0   r0   r1   )pushstate_operator_root_validate_withmode   re   z5XQueryLexer.pushstate_operator_root_validate_withmodec                 c   @    |  tj|dfV  |jd | jd | |_d S )Nr;   processing_instructionrQ   	r<   r   rM   r=   r>   rJ   rI   r?   r@   rA   r0   r0   r1   2pushstate_operator_processing_instruction_callback   r[   z>XQueryLexer.pushstate_operator_processing_instruction_callbackc                 c   ri   )Nr;   rj   rW   rk   rA   r0   r0   r1   9pushstate_element_content_processing_instruction_callback   r[   zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc                 c   ri   )Nr;   r\   rW   rk   rA   r0   r0   r1   0pushstate_element_content_cdata_section_callback   r[   z<XQueryLexer.pushstate_element_content_cdata_section_callbackc                 c   ri   )Nr;   r\   rQ   rk   rA   r0   r0   r1   )pushstate_operator_cdata_section_callback   r[   z5XQueryLexer.pushstate_operator_cdata_section_callbackc                 c   ri   )Nr;   xml_commentrW   rk   rA   r0   r0   r1   -pushstate_element_content_xmlcomment_callback   r[   z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc                 c   ri   )Nr;   rp   rQ   rk   rA   r0   r0   r1   &pushstate_operator_xmlcomment_callback   r[   z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sj    |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr;   rP   rb   kindtest
r<   r   r=   r   r   rI   rJ   r>   r?   r@   rA   r0   r0   r1   pushstate_kindtest_callback      z'XQueryLexer.pushstate_kindtest_callbackc                 c   j    |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr;   rP   rb   rQ   kindtestforpirt   rA   r0   r0   r1   )pushstate_operator_kindtestforpi_callback  rv   z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   rw   )Nr;   rP   rb   rQ   rs   rt   rA   r0   r0   r1   $pushstate_operator_kindtest_callback  rv   z0XQueryLexer.pushstate_operator_kindtest_callbackc                 c   sl    |  tj|dfV  |  t|dfV  |  t|dfV  | jd |jd |	 |_
d S )Nr;   rP   rb   rO   rs   )r<   r   r,   r=   r   r   rI   rJ   r>   r?   r@   rA   r0   r0   r1   /pushstate_occurrenceindicator_kindtest_callback  s   z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc                 c   rV   )Nr;   rQ   rX   rY   rA   r0   r0   r1   $pushstate_operator_starttag_callback   r[   z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s:    |  t|dfV  | jd dg|_| |_d S )Nr;   rQ   r   )r<   r   r=   rI   rJ   r>   r?   r@   rA   r0   r0   r1    pushstate_operator_root_callback&  s
   z,XQueryLexer.pushstate_operator_root_callbackc                 c   sf    |  t|dfV  |  t|dfV  |  t|dfV  | jd dg|_| |_	d S )Nr;   rP   rb   rQ   r   rt   rA   r0   r0   r1   *pushstate_operator_root_construct_callback,  s   z6XQueryLexer.pushstate_operator_root_construct_callbackc                 c   sD    |  t|dfV  |j }| j| dg|_| |_d S r:   )	r<   r   r=   r>   rK   rI   rJ   r?   r@   )rB   rC   rD   	cur_stater0   r0   r1   pushstate_root_callback4  s   
z#XQueryLexer.pushstate_root_callbackc                 c   s4    |  tj|dfV  |jd | |_d S )Nr;   rQ   )r<   r   	Attributer=   r>   rJ   r?   r@   rA   r0   r0   r1   %pushstate_operator_attribute_callback;  s   z1XQueryLexer.pushstate_operator_attribute_callbackc                 c   s^    |  t|dfV  |  t|dfV  |  t|dfV  | jd | |_d S )Nr;   rP   rb   rQ   )	r<   r   r=   r   r   rI   rJ   r?   r@   rA   r0   r0   r1   pushstate_operator_callback@  s   z'XQueryLexer.pushstate_operator_callbackcommentz[^:()]+z\(:#pushz:\)#popz[:()]
whitespace\s+rQ   z(\})z(\{)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)externalz(start|when|end)z(only)(\s+)(end)	collationuritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)namespacedeclz
(at)(\s+)(,=;namespacekeywordzinherit|no-inherit	namespacez(default)(\s+)(element)zpreserve|no-preserveannotationnamez(\()(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*)(\())rO   rx   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rO   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)(\()rs   z\{z(\))([*+?]?)z\*closekindtestz!(element|schema-element)(\s*)(\()rx   z(\))z\?rp   z(-->)z	[^-]{1,2}z@\t|\r|\n|[\u0020-\uD7FF]|[\uE000-\uFFFD]|[\U00010000-\U0010FFFF]rj   processing_instruction_contentz\?>r\   z]]>rX   z(/>)>rW   "quot_attribute_content'apos_attribute_contentz""z	\{\{|\}\}z''z</end_tagz(<!--)z(<\?)z(<!\[CDATA\[)z(<)z(>)xmlspace_declzpreserve|stripdeclareorderingzordered|unorderedxqueryversionencodingpragmacontentsz#\)z(\s+)z\*|\?|\+z:=optionqname_brarenz(\()element_qnameattribute_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'   r(   rI   ncnamestartchar
ncnamecharncnamepitarget_namestartcharpitarget_namecharpitargetprefixednameunprefixednameqname	entityrefcharrefstringdoublestringsingleelementcontentcharquotattrcontentcharaposattrcontentcharr)   r*   	MULTILINEr+   rE   rG   rL   rN   rS   rU   rZ   r^   r_   rd   rf   rg   rh   rl   rm   rn   ro   rq   rr   ru   ry   rz   r{   r|   r}   r~   r   r   r   r	   r   r   r   r
   Wordr   r   r   DoubleSingler   r   Variable	Namespace	DecoratorDeclarationTyper   rM   r,   r   r   r   FloatIntegerPseudor-   r/   r0   r0   r0   r1   r   :   s   		




 !#'()*+,-.1478:G

KW

b

rv
|







 )  1  8  ?  E
  J
  O
  T
  ]  f  o
  {               
            #
    '    ,
    /
    2



	



"%'+-
/0479=@BDGILNOPQT
W

Z

]adfiloruw{|~       	  
                        
   r   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
    QMLz+https://doc.qt.io/qt-6/qmlapplications.htmlqmlqbsz*.qmlz*.qbszapplication/x-qmlzapplication/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]?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   ReservedConstantr   BuiltinOtherr   r   Hexr   r   r/   r0   r0   r0   r1   r     sh    	

r   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
    Cirruzhttp://cirru.org/cirruz*.cirruztext/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+   r   Escaper
   r   r-   r   r   r   r   r   r/   r0   r0   r0   r1   r   c  sF    





r   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
    Slimslimz*.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)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/   r0   r0   r0   r1   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   r0   r0   r0   r1   <module>   s&    
 0      dJ5