a
    ;@bF  ć                   @   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-2021 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 ZdZdZg d¢ZddgZddgZej	Z
dd	eejeeejfd
eejejeeejfdeejejejfdeeeeeeefdeefdeefgiZdS )r   zµ
    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
    See http://duelengine.org/.
    See http://jsonml.org/jbst/.

    .. versionadded:: 1.4
    ZDuel)ZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/x-jbstŚrootz(<%[@=#!:]?)(.*?)(%>)z(<%\$)(.*?)(:)(.*?)(%>)z(<%--)(.*?)(--%>)z(<script.*?>)(.*?)(</script>)z
(.+?)(?=<)z.+N)Ś__name__Ś
__module__Ś__qualname__Ś__doc__ŚnameŚaliasesŚ	filenamesŚ	mimetypesŚreŚDOTALLŚflagsr   r   ŚTagr   r   ŚFunctionr   r   r	   Ś	Multiliner   Śtokens© r,   r,   ś6lib/python3.9/site-packages/pygments/lexers/webmisc.pyr      s2   ’’’’’

õ’r   c                l   @   s  e Zd ZdZdZg d¢Zg d¢ZddgZg ZdZ	de	 d	 Z
d
e	e
f ZdZde d	 Zdeef Zdeef ZeZdeef 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åeAe?eBe>dkfdęe3fdēe2fdĆe0fdÄe+fdÅe.fdĘe5fdčeAe>jKeBe>jKdéfdźe*fdėe)fdģeAe>eBeFfdķeAe>eBeFfdīe7fdļe7fdše dn eAe>eBdńfdņe dn 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>fd eAe>jKeBe>jKdfde dn eCjDdfde dn eCjEdfdeAe>eFfdeAe>eFfdeAe>eBeFfde>fdeAe>eBe>fd~e>fdeAe>eBd_fdeAe>eBeFeGjHdrfde dn eGjPdfde dn eGjPdfd	e eGjPdfd
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
    ZXQuery)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 r/   )r1   r
   r2   r3   r4   r5   r6   r,   r,   r-   Śoperator_root_callbackz   s    z"XQueryLexer.operator_root_callbackc                 c   s>   |  ” tj| d”fV  | jr0|j | j ” ” | ” |_	d S ©Nr0   )
r1   r   r(   r2   Śxquery_parse_stater3   ŚappendŚpopr4   r5   r6   r,   r,   r-   Śpopstate_tag_callback   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  ” tj| d”fV  |j | j ” ” | ” |_	d S r<   )
r1   r   ŚDocr2   r3   r>   r=   r?   r4   r5   r6   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 )Nr0   Śoccurrenceindicatorz[?*+]+é   Śoperator)r1   r   r2   r=   r?   r%   r8   r3   r>   r4   r5   )r7   r8   r9   Z
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 )Nr0   r   r   )
r1   r   r2   Ślenr=   r3   r?   r>   r4   r5   r6   r,   r,   r-   Śpopstate_callback   s    

zXQueryLexer.popstate_callbackc                 c   s>   |  ” tj| d”fV  | j d” |j d” | ” |_d S )Nr0   Śelement_contentŚ	start_tag©	r1   r   r(   r2   r=   r>   r3   r4   r5   r6   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 )Nr0   Ścdata_section)r1   r   rA   r2   r3   r>   r=   Śstater?   r4   r5   r6   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 )Nr0   rJ   )r1   r   r(   r2   r=   r>   rN   r?   r3   r4   r5   r6   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 ©Nr0   rD   é   r   rE   ©
r1   r   r2   r   r   r3   r=   r>   r4   r5   r6   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 rQ   rS   r6   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 rQ   rS   r6   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 rQ   )	r1   r   r2   r   r3   r=   r>   r4   r5   r6   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 )Nr0   Śprocessing_instructionrE   ©	r1   r   rA   r2   r3   r>   r=   r4   r5   r6   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 )Nr0   rX   rI   rY   r6   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 )Nr0   rM   rI   rY   r6   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 )Nr0   rM   rE   rY   r6   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 )Nr0   Śxml_commentrI   rY   r6   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 )Nr0   r^   rE   rY   r6   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 )Nr0   rD   rR   Śkindtest©
r1   r   r2   r   r   r=   r>   r3   r4   r5   r6   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 )Nr0   rD   rR   rE   Śkindtestforpirb   r6   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 )Nr0   rD   rR   rE   ra   rb   r6   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 )Nr0   rD   rR   rC   ra   )r1   r   r(   r2   r   r   r=   r>   r3   r4   r5   r6   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 )Nr0   rE   rJ   rK   r6   r,   r,   r-   Ś$pushstate_operator_starttag_callback   s    z0XQueryLexer.pushstate_operator_starttag_callbackc                 c   s8   |  ” t| d”fV  | j d” dg|_| ” |_d S )Nr0   rE   r   )r1   r   r2   r=   r>   r3   r4   r5   r6   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 )Nr0   rD   rR   rE   r   rb   r6   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 r/   )	r1   r   r2   r3   r?   r=   r>   r4   r5   )r7   r8   r9   Z	cur_stater,   r,   r-   Śpushstate_root_callback4  s
    
z#XQueryLexer.pushstate_root_callbackc                 c   s2   |  ” tj| d”fV  |j d” | ” |_d S )Nr0   rE   )r1   r   Ś	Attributer2   r3   r>   r4   r5   r6   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 )Nr0   rD   rR   rE   )	r1   r   r2   r   r   r=   r>   r4   r5   r6   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)(\()?rE   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*)(\())rC   rd   z!(item)(\s*)(\()(\s*)(\))(?=[*+?])rC   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(/>)ś>rI   ś"Śquot_attribute_contentś'Śapos_attribute_contentrJ   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]+))!rs   rr   rE   rx   r|   r   r   rw   rt   ru   ra   rd   r   r^   rX   r   rM   rJ   r   r   rI   r   r   r   r   r   r   rC   r   r   r   r   r   N)Xr   r   r   r    r!   r"   r#   r$   r=   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameZqnameZ	entityrefZcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr%   r&   Ś	MULTILINEŚUNICODEr'   r:   r;   r@   rB   rF   rH   rL   rO   rP   rT   rU   rV   rW   rZ   r[   r\   r]   r_   r`   rc   re   rf   rg   rh   ri   rj   rk   rm   rn   r	   r   r   r   r
   ZWordr   r   r   ŚDoubleŚSingler   r   ŚVariableŚ	NamespaceZ	DecoratorŚDeclarationŚTyper   rA   r(   rl   r   r   ŚFloatŚIntegerZPseudor)   r+   r,   r,   r,   r-   r   ;   sÄ  	
ū’
’’’’’’’
’
’’
’žĘ=

žö

÷
’
’’’óž
ü
’ž
žž
’
’’
’’
’
’
Ö-ś	ūū’ż
ż
’ž
’ž
ł
ł
ł

öżżżś	
’’üū
žż
’
’



’’’


’’’ž’’’’
’ž’’’’’

’

’
ž’’’’’’’’’
 ć  Šr   c                   @   s  e Zd ZdZdZddgZddgZddgZej	ej
B Zd	efd
efdejfdejfgeddejdfdedfedgdedfgdedfeddedfdedfdefdejdfdedfdedfdejdfdejfdejfdejfdejfd ejfd!ejfd"ej fd#ej!fd$ejfgd%Z"d&S )'r   zr
    For QML files. See http://doc.qt.digia.com/4.7/qdeclarativeintroduction.html.

    .. versionadded:: 1.6
    ZQMLZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlrq   z<!--z//.*?\nz	/\*.*?\*/Ścommentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)rp   z(?=/))rp   Ś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   ZRegexr   r
   r   r   r   ZReservedZConstantr   ZBuiltinZOtherr   r   ZHexr   r   r+   r,   r,   r,   r-   r     sd   	ü’ū’’’ž
żüßļr   c                   @   sā   e Zd ZdZdZdgZdgZdgZej	Z
defdejdfd	ed
fgdejd
fgded
fdejd
fded
fded
fdedfd	edfdejfgdedfdedfdefded
fd	edfdejfdefdejfgdejfedgdZdS )r   a[  
    Syntax rules of Cirru can be found at:
    http://cirru.org/

    * 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
    ZCirruZcirruz*.cirruztext/x-cirruz	[^"\\\n]+z\\Śescaper   rp   Ś.z\,z	[^\s"()]+r~   z(?=\n)z\(ro   )rp   Ś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   ZEscaper
   r   r)   r   r   r   r   r   r+   r,   r,   r,   r-   r   b  sB   
ż
’
ł
ųžä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)rp   z\|z*\nś/śslim-comment-blockz[\w:-]+śeval-or-plainz[<>]{1,2}(?=[ \t=])z[ \t]+\nz#pop:2z([^#\n]|#[^{\n]|(\\\\)*\\#\{)+z(#\{)(.*?)(\})r”   rz   z"[^"]+"z
\'[^\']+\'z\w+ś+)r   r«   r®   ZcontentrØ   rŖ   r©   r­   N)r   r   r   r    r!   r"   r#   r$   r%   Ś
IGNORECASEr'   Z_dotr   r   r   ZClassr)   r   r   r   r   rl   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!     cI7