U
    ]gt                     @   s   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ d	d
dddgZG dd	 d	eZG dd deZG dd deZ G dd deZ!G dd
 d
eZ"dS )z
    pygments.lexers.webmisc
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for misc. web stuff.

    :copyright: Copyright 2006-2025 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   e Zd ZdZdZdZdddgZddgZd	d
gZdZ	e
jZddeejeeejfdeejejeeejfdeejejejfdeeeeeeefdeefdeefgiZdS )r   zY
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    ZDuelzhttp://duelengine.org/ZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/x-jbst1.4rootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesversion_addedreDOTALLflagsr   r   Tagr   r   Functionr   r   r	   	Multiliner   tokens r/   r/   ;/tmp/pip-unpacked-wheel-zak7uw41/pygments/lexers/webmisc.pyr      s8   
 

c                l   @   s  e Zd ZdZdZdZdddddgZd	d
dddgZddgZdZ	g Z
dZde d Zde de dZdZde d Ze de dZe de ZeZde de dZdZdZde d e d Zde d e d  Zd!Zd"Zd#ZejejB 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= Z+d>d? Z,d@dA Z-dBdC Z.dDdE Z/dFdG Z0dHdI Z1dJdK Z2dLdM Z3dNdO Z4dPdQ Z5dRdS Z6dTdU Z7dVdW Z8dXdY Z9dZd[ Z:d\e;fd]e;d^fd_e;d`fdae;fgdbe<fge=dcdde$fd]e;defdfe9fdge>dhfdie>dhfdje>dhfdke>dhfdle?j@dhfdme?j@dhfdne>dhfdoe fdpefdqeAe>e<e>drfdseAe>e<e>dtfdueAe>e<e>dtfdve d eAe>e<eBjCdtfdve d eAe>e<eBjDdtfdwe>dtfdxeAeEe<e>dtfdyeFjGdzfd{eAe>e<eFjGdzfd|eAe>e<e>e<e>e<eFjGdzfd}eEfd~eAe>e<e>fde>d^fdeAe>e<e>fde>fde>dhfdeAe>e<e>dhfde>dfde>dhfde?feeBjCfeeBjDfdeAe>e<dhfg$eeBjCd`feeBjDd`fge=dcd]e;defde d eAe>e<eBjCfde d eAe>e<eBjDfeeBjCfeeBjDfdeEfde?fdeEdhfeeFjHfg
e=dcd]e;defeeBjCdfeeBjDdfde>dhfde>dfdeAe>eIe>fde>fdeEfg	d]e;defeeFjJfde d eAeEeBjCfde d eAeEeBjDfde d eAeEeIeBjCfde d eAeEeIeBjDfdeEfdeAeIeFjJdfdeAeIe>jKeIeFjGdzfdeAeIe>jKeIdhfg
d]e;defde d eAeFeEdfge=dcd]e;defed eFjGdfeeFjGdfge=dcd]e;defdyeFjGdzfdeAe>eIeEeIeEdfde5fdeAe>eIeEdfdeAe>eIeEeIeEdfdeAeEeIdfdeEd`fde>d`fde d eAe>eIeBjCdfde d eAe>eIeBjDdfde>dhfde?j@dhfde?dhfde>dhfdeAe>eIe>eIe>dhfdeAe>eIe>drfdeAe>eIe>fdeAe>eIe>fdve d eAe>eIeBjCdtfdve d eAe>eIeBjDdtfde>dtfdxeAe?eIe>dtfed e>jLdfdeAe>jLeEfee>jLdfgd]e;defdeEdhfde#fdeFdfeeFdfde2fgd]e;defdeEd`feeFjGfeeBjCfeeBjDfgd]e;defde$fdeEfdfe7fdeEfgde"fdeMfdeMfgdbeIdfdeBjNd`feeFfgdeBjNd`fdeMfgdeBjNd`fdeMfge=dcde!fdeFjOdfdeEdfdeEdfde?feeFjOfgdeEdfdfe9fdeFjPfeeFjPfeeFjPfeeFjPfdeFjPfgdeEdfdeEdhfdeFjPfeeFjPfeeFjPfeeFjPfdeFjPfgdeFjOdfdfe9fde0fde-fde.fde%feeMfeeMfeeMfdeMfg
e=dcde!feeFjOfge=dcd]e;defde>d`fgd]e;defe=dcde>d`fge=dcd]e;defeeBjCfeeBjDfde>fdeEd`fgeeFjGdfgdeEdfdeMfde<fge=dcd]e;defde?dfde?dhfeQdge=dceeFjGd`fge=dcdfe7fdeEdhfgeeFjGdhfgeeFjGdhfge=dcd]e;defdeRjSdfdeRjSdfdeRjSdfdeRjTdfdeEdfdeAe>jKeIe>jKdfdeAe>jKeIe>jKeIe>jKdfdeAe>jKeIe>jKeIe>jKdfed eFdfde eFjOdfdeFjOdfeeBjCdfeeBjDdfde$fdeAe>jKe<e>jKe<e>jKfdeAe>jKe<e>jKdfdeAe>jKe<e>jKdfdeAe>jKe<e>jKe<e>jKdfdeAe>jUe<e>jUdfdeAe>jKe<e>jKdfdeAe>e<eFjGdzfd|eAe>e<e>e<e>e<eFjGdzfdyeFjGdzfdeAe>jKe<e>jKe<eFjGdzfdeAe>jKe<eFjJdfdeAe?e<e>dtfde4fde3fde1fde,fde/fde6fdeAe>jKeIe>jKdfde+fde*fdeAe>e<eEfdeAe>e<eEfde8fde8fde d eAe>e<dfde d eAe>e<dfde d eAe>e<eFjGe<eEdfdeAe>jKe<e>jKfde7fd e(fde)fdeAe>jKe<e>jKdfdeAe>jUe<e>jUdfdeAeEe<dfde>fdeAe>jKe<e>jKd	fde d eBjCdfde d eBjDdfd
eAe>eEfdeAe>eEfdeAe>e<eEfde>fdeAe>e<e>fde>fdeAe>e<dhfdeAe>e<eEeFjGdzfde d eFjPdfde d eFjPdfde eFjPdfdeFjPdfdeFjPdfdeEfed eFjOdfed eFjVdfde d eAeFjVe>jLeRjTfeeFjOdfgId!ZWdS (  r   zj
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.
    ZXQueryzhttps://www.w3.org/XML/Query/ZxqueryZxqyZxqZxqlZxqmz*.xqyz*.xqueryz*.xqz*.xqlz*.xqmztext/xqueryzapplication/xqueryr   z(?:[A-Z]|_|[a-z])z(?:z|-|\.|[0-9])+z*)z(?:[A-KN-WYZ]|_|:|[a-kn-wyz])*:|)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|dfV  dg|_| |_d S N   r   )startr   groupstackendposlexermatchctxr/   r/   r0   punctuation_root_callbackr   s    z%XQueryLexer.punctuation_root_callbackc                 c   s,   |  t|dfV  dg|_| |_d S r6   )r8   r
   r9   r:   r;   r<   r=   r/   r/   r0   operator_root_callbackx   s    z"XQueryLexer.operator_root_callbackc                 c   s>   |  tj|dfV  | jr0|j| j  | |_	d S Nr7   )
r8   r   r+   r9   xquery_parse_stater:   appendpopr;   r<   r=   r/   r/   r0   popstate_tag_callback~   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  tj|dfV  |j| j  | |_	d S rC   )
r8   r   Docr9   r:   rE   rD   rF   r;   r<   r=   r/   r/   r0   popstate_xmlcomment_callback   s    z(XQueryLexer.popstate_xmlcomment_callbackc                 c   s   |  t|dfV  | j }|dkrtd|drh|  t|dfV  |jd |	 |_
q|jd |	d|_
n|j| |	d|_
d S )Nr7   occurrenceindicatorz[?*+]+   operator)r8   r   r9   rD   rF   r(   r?   r:   rE   r;   r<   )r>   r?   r@   
next_stater/   r/   r0   popstate_kindtest_callback   s    
z&XQueryLexer.popstate_kindtest_callbackc                 c   sv   |  t|dfV  t| jdkr>|j  |jshdg|_n*t|jdkr`|j| j  ndg|_| |_	d S )Nr7   r   r   )
r8   r   r9   lenrD   r:   rF   rE   r;   r<   r=   r/   r/   r0   popstate_callback   s    

zXQueryLexer.popstate_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr7   element_content	start_tag	r8   r   r+   r9   rD   rE   r:   r;   r<   r=   r/   r/   r0   +pushstate_element_content_starttag_callback   s    z7XQueryLexer.pushstate_element_content_starttag_callbackc                 c   sB   |  tj|dfV  |jd | j|jj |	 |_
d S )Nr7   cdata_section)r8   r   rH   r9   r:   rE   rD   staterF   r;   r<   r=   r/   r/   r0    pushstate_cdata_section_callback   s    z,XQueryLexer.pushstate_cdata_section_callbackc                 c   sB   |  tj|dfV  | j|jj |jd |	 |_
d S )Nr7   rR   )r8   r   r+   r9   rD   rE   rV   rF   r:   r;   r<   r=   r/   r/   r0   pushstate_starttag_callback   s    z'XQueryLexer.pushstate_starttag_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S Nr7   rK      r   rL   
r8   r   r9   r   r   r:   rD   rE   r;   r<   r=   r/   r/   r0   !pushstate_operator_order_callback   s    z-XQueryLexer.pushstate_operator_order_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S rY   r[   r=   r/   r/   r0   pushstate_operator_map_callback   s    z+XQueryLexer.pushstate_operator_map_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_	d S rY   r[   r=   r/   r/   r0    pushstate_operator_root_validate   s    z,XQueryLexer.pushstate_operator_root_validatec                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  dg|_| jd | |_d S rY   )	r8   r   r9   r   r:   rD   rE   r;   r<   r=   r/   r/   r0   )pushstate_operator_root_validate_withmode   s    z5XQueryLexer.pushstate_operator_root_validate_withmodec                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   processing_instructionrL   	r8   r   rH   r9   r:   rE   rD   r;   r<   r=   r/   r/   r0   2pushstate_operator_processing_instruction_callback   s    z>XQueryLexer.pushstate_operator_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   r`   rQ   ra   r=   r/   r/   r0   9pushstate_element_content_processing_instruction_callback   s    zEXQueryLexer.pushstate_element_content_processing_instruction_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   rU   rQ   ra   r=   r/   r/   r0   0pushstate_element_content_cdata_section_callback   s    z<XQueryLexer.pushstate_element_content_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   rU   rL   ra   r=   r/   r/   r0   )pushstate_operator_cdata_section_callback   s    z5XQueryLexer.pushstate_operator_cdata_section_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   xml_commentrQ   ra   r=   r/   r/   r0   -pushstate_element_content_xmlcomment_callback   s    z9XQueryLexer.pushstate_element_content_xmlcomment_callbackc                 c   s>   |  tj|dfV  |jd | jd | |_d S )Nr7   rf   rL   ra   r=   r/   r/   r0   &pushstate_operator_xmlcomment_callback   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr7   rK   rZ   kindtest
r8   r   r9   r   r   rD   rE   r:   r;   r<   r=   r/   r/   r0   pushstate_kindtest_callback   s    z'XQueryLexer.pushstate_kindtest_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr7   rK   rZ   rL   kindtestforpirj   r=   r/   r/   r0   )pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   sh   |  t|dfV  |  t|dfV  |  t|dfV  | jd |jd | |_	d S )Nr7   rK   rZ   rL   ri   rj   r=   r/   r/   r0   $pushstate_operator_kindtest_callback  s    z0XQueryLexer.pushstate_operator_kindtest_callbackc                 c   sj   |  tj|dfV  |  t|dfV  |  t|dfV  | jd |jd |	 |_
d S )Nr7   rK   rZ   rJ   ri   )r8   r   r+   r9   r   r   rD   rE   r:   r;   r<   r=   r/   r/   r0   /pushstate_occurrenceindicator_kindtest_callback  s    z;XQueryLexer.pushstate_occurrenceindicator_kindtest_callbackc                 c   s>   |  tj|dfV  | jd |jd | |_d S )Nr7   rL   rR   rS   r=   r/   r/   r0   $pushstate_operator_starttag_callback  s    z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s8   |  t|dfV  | jd dg|_| |_d S )Nr7   rL   r   )r8   r   r9   rD   rE   r:   r;   r<   r=   r/   r/   r0    pushstate_operator_root_callback$  s    z,XQueryLexer.pushstate_operator_root_callbackc                 c   sd   |  t|dfV  |  t|dfV  |  t|dfV  | jd dg|_| |_	d S )Nr7   rK   rZ   rL   r   rj   r=   r/   r/   r0   *pushstate_operator_root_construct_callback*  s    z6XQueryLexer.pushstate_operator_root_construct_callbackc                 c   sB   |  t|dfV  |j }| j| dg|_| |_d S r6   )	r8   r   r9   r:   rF   rD   rE   r;   r<   )r>   r?   r@   Z	cur_stater/   r/   r0   pushstate_root_callback2  s
    
z#XQueryLexer.pushstate_root_callbackc                 c   s2   |  tj|dfV  |jd | |_d S )Nr7   rL   )r8   r   	Attributer9   r:   rE   r;   r<   r=   r/   r/   r0   %pushstate_operator_attribute_callback9  s    z1XQueryLexer.pushstate_operator_attribute_callbackz[^:()]+z\(:#pushz:\)#popz[:()]\s+
whitespacez(\})commentz(\{)z then|else|external|at|div|exceptr   zorder byzgroup byz%is|mod|order\s+by|stable\s+order\s+byzand|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)zascending|descending|defaultz(allowing)(\s+)(empty)Zexternalz(start|when|end)z(only)(\s+)(end)Z	collationuritooperatorz(into|following|preceding|with)z\.z(catch)(\s*)z
(at)(\s+)(,=;namespacedeclzinherit|no-inherit	namespacez(default)(\s+)(element)zpreserve|no-preservez(\()(z
(\,)(\s+)(\)z	(\s+)(\%)annotationnamez(\s+)(variable)(\s+)(\$)z(\s+)(function)(\s+)(z)(\()?rL   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*)(\())rJ   rl   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rJ   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):=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|zexternal|atz(stable)(\s+)(order)(\s+)(by)z(castable|cast)(\s+)(as)z(treat)(\s+)(as)z(instance)(\s+)(of)zcase|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(/>)>rQ   "quot_attribute_content'apos_attribute_contentrR   z""z	\{\{|\}\}z''z</end_tagz(<!--)z(<\?)z(<!\[CDATA\[)z(<)z(>)zpreserve|stripzordered|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]+))!rz   ry   rL   r~   r   r   r   r}   r{   r|   ri   rl   r   rf   r`   r   rU   rR   r   r   rQ   r   r   r   r   r   r   rJ   r   r   r   r   r   N)Xr   r   r    r!   r"   r#   r$   r%   r&   r'   rD   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameqname	entityrefcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr(   r)   	MULTILINEr*   rA   rB   rG   rI   rN   rP   rT   rW   rX   r\   r]   r^   r_   rb   rc   rd   re   rg   rh   rk   rm   rn   ro   rp   rq   rr   rs   ru   r	   r   r   r   r
   Wordr   r   DoubleSingler   r   Variable	Namespacer   Z	DecoratorDeclarationTyper   rH   r+   rt   r   r   FloatIntegerZPseudor,   r.   r/   r/   r/   r0   r   9   s\  	
  
 
 
 
 
 
 
  

A







  

 

 
  
 
 
 
 
-	







	







   


    
 
 
 
 



   c                   @   s   e Zd ZdZdZdZddgZddgZdd	gZd
Z	e
je
jB Zdefdefdejfdejfgeddejdfdedfedgdedfgdedfeddedfdedfdefdejdfdedfdedfdejdfdejfdejfd ejfd!ejfd"ej fd#ej!fd$ej"fd%ej#fd&ejfgd'Z$d(S ))r   z
    For QML files.
    ZQMLz+https://doc.qt.io/qt-6/qmlapplications.htmlZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlz1.6rx   z<!--z//.*?\nz	/\*.*?\*/commentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)rw   z(?=/))rw   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]?z0x[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   r   Regexr   r
   r   r   r   ZReservedConstantr   ZBuiltinZOtherr   r   ZHexr   r   r.   r/   r/   r/   r0   r   +  sn      
c                   @   s   e Zd ZdZdZdZdgZdgZdgZdZ	e
jZdefd	ejd
fdedfgdejdfgdedfdejdfdedfdedfdedfdedfdejfgdedfdedfdefdedfdedfdejfdefdejfgdejfedgdZdS )r   z
    * 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
    ZCirruzhttp://cirru.org/Zcirruz*.cirruztext/x-cirru2.0z	[^"\\\n]+z\\escaper   rw   .z\,z	[^\s"()]+r   z(?=\n)z\(rv   )rw   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*   r   ZEscaper
   r   r,   r   r   r   r   r   r.   r/   r/   r/   r0   r   t  sF   



c                   @   sf  e Zd ZdZdZdgZdgZdgZdZdZ	e
jZdZd	efd
efgdejdfdejdfgdeeeedfdejdfedgeddedfdeeeedfde d eeddfde d eejddfdejdfedgeddefdedfedgd efd!eejeeejfd"edfgd#efd$eedfd%eedfd&edfged' ejfd"edfgd(Z d)S )*r   z
    For Slim markup.
    ZSlimZslimz*.slimztext/x-slimzhttps://slim-template.github.ior   z(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+tagz	\#[\w:-]+z([ \t]*==?)(.*\n)r   z[ \t]+[\w:-]+(?==)html-attributesplaincssz[\w:-]+:[ \t]*\nz	(-)(.*\n)rw   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+r1   )r   r   r   contentr   r   r   r   N)!r   r   r    r!   r"   r$   r%   r&   r#   r'   r(   
IGNORECASEr*   Z_dotr   r   r   ZClassr,   r   r   r   r   rt   r   r   r   r	   ZPreprocr+   r   ZInterpolr.   r/   r/   r/   r0   r     sj   


	
)#r!   r(   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   r   Zpygments.lexers.cssr   r   Zpygments.lexers.htmlr   Zpygments.lexers.javascriptr   Zpygments.lexers.rubyr   __all__r   r   r   r   r   r/   r/   r/   r0   <module>   s$   
 0     wI4