a
    Øc  ć                   @   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)Ś
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 Zd ZdZdZdZg d¢ZddgZddgZe	j
Zd	d
eejeeejfdeejejeeejfdeejejejfdeeeeeeefdeefdeefgiZdS )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-jbstŚrootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)Ś__name__Ś
__module__Ś__qualname__Ś__doc__ŚnameŚurlŚaliasesŚ	filenamesŚ	mimetypesŚreŚDOTALLŚflagsr   r   ŚTagr   r   ŚFunctionr   r   r	   Ś	Multiliner   Śtokens© r-   r-   śZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pygments/lexers/webmisc.pyr      s4   ’’’’’

õ’r   c                l   @   s  e Zd ZdZdZdZg d¢Zg d¢ZddgZg Z	dZ
d	e
 d
 Zde
ef ZdZd	e d
 Zdeef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JdfdęeAe?eBe>dlfdēe3fdče2fdÄe0fdÅe+fdĘe.fdĒe5fdéeAe>jKeBe>jKdźfdėe*fdģe)fdķeAe>eBeFfdīeAe>eBeFfdļe7fdše7fdńe do eAe>eBdņfdóe do eAe>eBdōfdõe dö eAe>eBeGjHeBeFdfd÷eAe>jKeBe>jKfdųe6fdłe'fdśe(fdūeAe>jKeBe>jKdüfdżeAe>jUeBe>jUdžfd’eAeFeBdfd e>fdeAe>jKeBe>jKdfde do eCjDdfde do eCjEdfdeAe>eFfdeAe>eFfdeAe>eBeFfde>fdeAe>eBe>fde>fdeAe>eBd`fdeAe>eBeFeGjHdsfd	e do eGjPdfd	e do eGjPdfd
e eGjPdfdeGjPdfdeGjPdfdeFfed 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/)ZxqueryZxqyZxqZxqlZxqm)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| d”fV  dg|_| ” |_d S ©Né   r   )Śstartr   ŚgroupŚstackŚendŚpos©ŚlexerŚmatchŚctxr-   r-   r.   Śpunctuation_root_callbackt   s    z%XQueryLexer.punctuation_root_callbackc                 c   s,   |  ” t| d”fV  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| d”fV  | jr0|j | j ” ” | ” |_	d S ©Nr1   )
r2   r   r)   r3   Śxquery_parse_stater4   ŚappendŚpopr5   r6   r7   r-   r-   r.   Śpopstate_tag_callback   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  ” tj| d”fV  |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| d”fV  | j ” }|dkrt d| d””rh|  ” t| d”fV  |j d” | 	” |_
q|j d” | 	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| d”fV  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| d”fV  | j d” |j d” | ” |_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| d”fV  |j d” | 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| d”fV  | j |jj” |j d” | 	” |_
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| d”fV  |  ” t| d”fV  |  ” t| d”fV  dg|_| j d” | ” |_	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| d”fV  |  ” t| d”fV  |  ” t| d”fV  dg|_| j d” | ” |_	d S rS   rU   r7   r-   r-   r.   Śpushstate_operator_map_callbackÄ   s    z+XQueryLexer.pushstate_operator_map_callbackc                 c   sd   |  ” t| d”fV  |  ” t| d”fV  |  ” t| d”fV  dg|_| j d” | ” |_	d S rS   rU   r7   r-   r-   r.   Ś pushstate_operator_root_validateĢ   s    z,XQueryLexer.pushstate_operator_root_validatec                 c   sd   |  ” t| d”fV  |  ” t| d”fV  |  ” t| d”fV  dg|_| j d” | ” |_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| d”fV  |j d” | j d” | ” |_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| d”fV  |j d” | j d” | ” |_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| d”fV  |j d” | j d” | ” |_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| d”fV  |j d” | j d” | ” |_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| d”fV  |j d” | j d” | ” |_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| d”fV  |j d” | j d” | ” |_d S )Nr1   r`   rF   r[   r7   r-   r-   r.   Ś&pushstate_operator_xmlcomment_callbackś   s    z2XQueryLexer.pushstate_operator_xmlcomment_callbackc                 c   sh   |  ” t| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” |j d” | ” |_	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| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” |j d” | ” |_	d S )Nr1   rE   rT   rF   Śkindtestforpird   r7   r-   r-   r.   Ś)pushstate_operator_kindtestforpi_callback  s    z5XQueryLexer.pushstate_operator_kindtestforpi_callbackc                 c   sh   |  ” t| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” |j d” | ” |_	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| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” |j d” | 	” |_
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| d”fV  | j d” |j d” | ” |_d S )Nr1   rF   rL   rM   r7   r-   r-   r.   Ś$pushstate_operator_starttag_callback   s    z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s8   |  ” t| d”fV  | j d” 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| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” 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| d”fV  |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| d”fV  |j d” | ” |_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| d”fV  |  ” t| d”fV  |  ” t| d”fV  | j d” | ” |_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)\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	(\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|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]+))!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_namecharZpitargetZprefixednameZunprefixednameŚqnameŚ	entityrefŚcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr&   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   ŚDoubleŚSingler   r   ŚVariableŚ	NamespaceZ	DecoratorŚDeclarationŚTyper   rB   r)   rn   r   r   ŚFloatŚIntegerZPseudor*   r,   r-   r-   r-   r.   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
    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    ZReservedŚConstantr   ZBuiltinZOtherr   r¢   ZHexr£   r   r,   r-   r-   r-   r.   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
    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   

ż
’
ł
ųžä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
    ZSlimZslimz*.slimztext/x-slimz(?: \|\n(?=.* \|)|.)z[ \t]*\nz[ \t]*z	\.[\w:-]+Śtagz	\#[\w:-]+z([ \t]*==?)(.*\n)r   z[ \t]+[\w:-]+(?==)śhtml-attributesŚplainŚcssz[\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    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