a
    lc                     @   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   S/var/www/html/django/DPS/env/lib/python3.9/site-packages/pygments/lexers/webmisc.pyr      s4   

r   c                l   @   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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eGjPdfdeGjPdfdeFfed 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
    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   s,   |  t|dfV  dg|_| |_d S N   r   )startr   groupstackendposlexermatchctxr0   r0   r1   punctuation_root_callbackt   s    z%XQueryLexer.punctuation_root_callbackc                 c   s,   |  t|dfV  dg|_| |_d S r9   )r;   r
   r<   r=   r>   r?   r@   r0   r0   r1   operator_root_callbackz   s    z"XQueryLexer.operator_root_callbackc                 c   s>   |  tj|dfV  | jr0|j| j  | |_	d S Nr:   )
r;   r   r,   r<   xquery_parse_stater=   appendpopr>   r?   r@   r0   r0   r1   popstate_tag_callback   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  tj|dfV  |j| j  | |_	d S rF   )
r;   r   Docr<   r=   rH   rG   rI   r>   r?   r@   r0   r0   r1   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 )Nr:   occurrenceindicatorz[?*+]+   operator)r;   r   r<   rG   rI   r)   rB   r=   rH   r>   r?   )rA   rB   rC   
next_stater0   r0   r1   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 )Nr:   r   r   )
r;   r   r<   lenrG   r=   rI   rH   r>   r?   r@   r0   r0   r1   popstate_callback   s    

zXQueryLexer.popstate_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr:   element_content	start_tag	r;   r   r,   r<   rG   rH   r=   r>   r?   r@   r0   r0   r1   +pushstate_element_content_starttag_callback   s    z7XQueryLexer.pushstate_element_content_starttag_callbackc                 c   sB   |  tj|dfV  |jd | j|jj |	 |_
d S )Nr:   cdata_section)r;   r   rK   r<   r=   rH   rG   staterI   r>   r?   r@   r0   r0   r1    pushstate_cdata_section_callback   s    z,XQueryLexer.pushstate_cdata_section_callbackc                 c   sB   |  tj|dfV  | j|jj |jd |	 |_
d S )Nr:   rU   )r;   r   r,   r<   rG   rH   rY   rI   r=   r>   r?   r@   r0   r0   r1   pushstate_starttag_callback   s    z'XQueryLexer.pushstate_starttag_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S Nr:   rN      r   rO   
r;   r   r<   r   r   r=   rG   rH   r>   r?   r@   r0   r0   r1   !pushstate_operator_order_callback   s    z-XQueryLexer.pushstate_operator_order_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S r\   r^   r@   r0   r0   r1   pushstate_operator_map_callback   s    z+XQueryLexer.pushstate_operator_map_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S r\   r^   r@   r0   r0   r1    pushstate_operator_root_validate   s    z,XQueryLexer.pushstate_operator_root_validatec                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_d S r\   )	r;   r   r<   r   r=   rG   rH   r>   r?   r@   r0   r0   r1   )pushstate_operator_root_validate_withmode   s    z5XQueryLexer.pushstate_operator_root_validate_withmodec                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   processing_instructionrO   	r;   r   rK   r<   r=   rH   rG   r>   r?   r@   r0   r0   r1   2pushstate_operator_processing_instruction_callback   s    z>XQueryLexer.pushstate_operator_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   rc   rT   rd   r@   r0   r0   r1   9pushstate_element_content_processing_instruction_callback   s    zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   rX   rT   rd   r@   r0   r0   r1   0pushstate_element_content_cdata_section_callback   s    z<XQueryLexer.pushstate_element_content_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   rX   rO   rd   r@   r0   r0   r1   )pushstate_operator_cdata_section_callback   s    z5XQueryLexer.pushstate_operator_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   xml_commentrT   rd   r@   r0   r0   r1   -pushstate_element_content_xmlcomment_callback   s    z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr:   ri   rO   rd   r@   r0   r0   r1   &pushstate_operator_xmlcomment_callback   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr:   rN   r]   kindtest
r;   r   r<   r   r   rG   rH   r=   r>   r?   r@   r0   r0   r1   pushstate_kindtest_callback   s    z'XQueryLexer.pushstate_kindtest_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr:   rN   r]   rO   kindtestforpirm   r@   r0   r0   r1   )pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr:   rN   r]   rO   rl   rm   r@   r0   r0   r1   $pushstate_operator_kindtest_callback  s    z0XQueryLexer.pushstate_operator_kindtest_callbackc                 c   sj   |  tj|dfV  |  t|dfV  |  t|dfV  | jd |jd |	 |_
d S )Nr:   rN   r]   rM   rl   )r;   r   r,   r<   r   r   rG   rH   r=   r>   r?   r@   r0   r0   r1   /pushstate_occurrenceindicator_kindtest_callback  s    z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr:   rO   rU   rV   r@   r0   r0   r1   $pushstate_operator_starttag_callback   s    z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s8   |  t|dfV  | jd dg|_| |_d S )Nr:   rO   r   )r;   r   r<   rG   rH   r=   r>   r?   r@   r0   r0   r1    pushstate_operator_root_callback&  s    z,XQueryLexer.pushstate_operator_root_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  | jd dg|_| |_	d S )Nr:   rN   r]   rO   r   rm   r@   r0   r0   r1   *pushstate_operator_root_construct_callback,  s    z6XQueryLexer.pushstate_operator_root_construct_callbackc                 c   sB   |  t|dfV  |j }| j| dg|_| |_d S r9   )	r;   r   r<   r=   rI   rG   rH   r>   r?   )rA   rB   rC   Z	cur_stater0   r0   r1   pushstate_root_callback4  s
    
z#XQueryLexer.pushstate_root_callbackc                 c   s2   |  tj|dfV  |jd | |_d S )Nr:   rO   )r;   r   	Attributer<   r=   rH   r>   r?   r@   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:   rN   r]   rO   )	r;   r   r<   r   r   rG   rH   r>   r?   r@   r0   r0   r1   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)(\()?rO   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*)(\())rM   ro   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rM   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(/>)>rT   "quot_attribute_content'apos_attribute_contentrU   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]+))!r~   r}   rO   r   r   r   r   r   r   r   rl   ro   r   ri   rc   r   rX   rU   r   r   rT   r   r   r   r   r   r   rM   r   r   r   r   r   N)Xr    r!   r"   r#   r$   r%   r&   r'   r(   rG   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameZqname	entityrefcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr)   r*   	MULTILINEr+   rD   rE   rJ   rL   rQ   rS   rW   rZ   r[   r_   r`   ra   rb   re   rf   rg   rh   rj   rk   rn   rp   rq   rr   rs   rt   ru   rv   rx   ry   r	   r   r   r   r
   Wordr   r   r   DoubleSingler   r   Variable	Namespace	DecoratorDeclarationTyper   rK   r,   rw   r   r   FloatIntegerPseudor-   r/   r0   r0   r0   r1   r   :   s  	




=














-	







	

















   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     sf   	
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\(rz   )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  sD   




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+   Z_dotr   r   r   Classr-   r   r   r   r   rw   r   r   r   r	   Preprocr,   r   Interpolr/   r0   r0   r0   r1   r     sf   


	
r   )#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   r0   r0   r0   r1   <module>   s$   
 0      dJ5