U
    G
\                     @   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 ddl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-2017 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)unirange)_indentation_starts_block)	HtmlLexer)JavascriptLexer)	RubyLexer	DuelLexer	SlimLexerXQueryLexerQmlLexer
CirruLexerc                
   @   s   e Zd ZdZdZdddgZddgZdd	g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   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
    ZDuelZduelZjbstz
jsonml+bstz*.duelz*.jbstztext/x-duelztext/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,   9/usr/lib/python3/dist-packages/pygments/lexers/webmisc.pyr      s4   
 

c                l   @   s  e 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g ZdZ	de	 d Z
de	e
f ZdZde d Zdeef Zdeef ZeZdeef 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 ejB Zd!d" Zd#d$ Zd%d& Z d'd( Z!d)d* Z"d+d, Z#d-d. Z$d/d0 Z%d1d2 Z&d3d4 Z'd5d6 Z(d7d8 Z)d9d: Z*d;d< Z+d=d> Z,d?d@ Z-dAdB Z.dCdD Z/dEdF Z0dGdH Z1dIdJ Z2dKdL Z3dMdN Z4dOdP Z5dQdR Z6dSdT Z7dUdV Z8dWdX Z9dYdZ Z:d[e;d\fd]e;d^fd_e;fd`e;fgdae<fge=dbdce#fdde;defdfe8f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 dw eAe>e<eBjCdtfdve dw eAe>e<eBjDdtfdxe>dtfdyeAeEe<e>dtfdzeFjGd{fd|eAe>e<eFjGd{fd}eAe>e<e>e<e>e<eFjGd{fd~eEfdeAe>e<e>fde>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=dbdde;defde dw eAe>e<eBjCfde dw eAe>e<eBjDfeeBjCfeeBjDfdeEfde?fdeEdhfeeFjHfg
e=dbdde;defeeBjCdfeeBjDdfde>dhfde>dfdeAe>e<e>fde>fdeEfg	dde;defeeFjIfde dw eAeEeBjCfde dw eAeEeBjDfde dw eAeEe<eBjCfde dw eAeEe<eBjDfdeEfdeAe<eFjIdfdeAe<e>jJe<eFjGd{fdeAe<e>jJe<dhfg
dde;defde d eAeFeEdfge=dbdde;defed eFjGdfeeFjGdfge=dbdde;defdzeFjGd{fdeAe>e<eEe<eEdfde4fdeAe>e<eEdfdeAe>e<eEe<eEdfdeAeEe<dfdeEd\fde>d\fde dw eAe>e<eBjCdfde dw eAe>e<eBjDdfde>dhfde?j@dhfde?dhfde>dhfdeAe>e<e>e<e>dhfdeAe>e<e>drfdeAe>e<e>fdeAe>e<e>fdve dw eAe>e<eBjCdtfdve dw eAe>e<eBjDdtfde>dtfdyeAe?e<e>dtfed e>jKdfdeAe>jKeEfee>jKdfgdde;defdeEdhfde"fdeFdfeeFdfde1fgdde;defdeEd\feeFjGfeeBjCfeeBjDfgdde;defde#fdeEfdfe6fdeEfgde!fdeLfdeMdd eLfgdae<dfdeBjNd\feeFfgdeBjNd\fdeMdd eLfgdeBjNd\fdeMdd eLfge=dbde fdeFjOdfdeEdfdeEdfde?feeFjOfgdeEdfdfe8fdeFjPfeeFjPfeeFjPfeeFjPfdeFjPfgdeEdfdeEdhfdeFjPfeeFjPfeeFjPfeeFjPfdeFjPfgdeFjOdfdfe8fde/fde,fde-fde$feeLfeeLfeeLfdeLfg
e=dbde feeFjOfge=dbdde;defde>d\fgdde;defe=dbde>d\fge=dbdde;defeeBjCfeeBjDfde>fdeEd\fgeeFjGdfgdeEdfdeMdd eLfde<fge=dbdde;defde?dfde?dhfeQdge=dbeeFjGd\fge=dbdfe6fdeEdhfgeeFjGdhfgeeFjGdhfge=dbdde;defdeRjSdfdeRjSdfdeRjSdfdeRjTdfdeEdfdeAe>jJe<e>jJdfdeAe>jJe<e>jJe<e>jJdfdeAe>jJe<e>jJe<e>jJdfed eFdfde eFjOdfdeFjOdfeeBjCdfeeBjDdfde#fdeAe>jJe<e>jJe<e>jJfdeAe>jJe<e>jJdfdeAe>jJe<e>jJdfdeAe>jJe<e>jJe<e>jJdfdeAe>jUe<e>jUdfdeAe>jJe<e>jJdfdeAe>e<eFjGd{fd}eAe>e<e>e<e>e<eFjGd{fdzeFjGd{fdeAe>jJe<e>jJe<eFjGd{fdeAe>jJe<eFjIdfdeAe?e<e>dtfde3fde2fde0fde+fde.fde5fdeAe>jJe<e>jJdfde*fde)fdeAe>e<eEfdeAe>e<eEfde7fde7fde dw eAe>e<dfde dw eAe>e<dfde d  eAe>e<eFjGe<eEdfdeAe>jJe<e>jJfde6fde'fde(fdeAe>jJe<e>jJdfdeAe>jUe<e>jUdfd	eAeEe<dfd
e>fdeAe>jJe<e>jJdfde dw eBjCdfde dw 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d{fde dw eFjPdfde dw eFjPdfde eFjPdfdeFjPdfdeFjPdfdeEfed eFjOdfed eFjVdfde d eAeFjVe>jKeRjTfeeFjOdfgId!ZWdS (  r   z
    An XQuery lexer, parsing a stream and outputting the tokens needed to
    highlight xquery code.

    .. versionadded:: 1.4
    ZXQueryZxqueryZxqyZxqZxqlZxqmz*.xqyz*.xqueryz*.xqz*.xqlz*.xqmztext/xqueryzapplication/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fV  dg|_| |_d S N   r   )startr   groupstackendposlexermatchctxr,   r,   r-   punctuation_root_callbackv   s    z%XQueryLexer.punctuation_root_callbackc                 c   s,   |  t|dfV  dg|_| |_d S r/   )r1   r
   r2   r3   r4   r5   r6   r,   r,   r-   operator_root_callback|   s    z"XQueryLexer.operator_root_callbackc                 c   s8   |  tj|dfV  |j| j  | |_	d S Nr0   )
r1   r   r(   r2   r3   appendxquery_parse_statepopr4   r5   r6   r,   r,   r-   popstate_tag_callback   s    z!XQueryLexer.popstate_tag_callbackc                 c   s8   |  tj|dfV  |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fV  | j }|dkrtd|drh|  t|dfV  |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   sh   |  t|dfV  t| jdkr0|j  n*t|jdkrR|j| j  ndg|_| |_	d S )Nr0   r   r   )
r1   r   r2   lenr>   r3   r?   r=   r4   r5   r6   r,   r,   r-   popstate_callback   s    zXQueryLexer.popstate_callbackc                 c   s>   |  tj|dfV  | 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   |  tj|dfV  |jd | j|jj |	 |_
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   |  tj|dfV  | j|jj |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fV  |  t|dfV  |  t|dfV  dg|_| 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fV  |  t|dfV  |  t|dfV  dg|_| 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fV  |  t|dfV  |  t|dfV  dg|_| 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fV  |  t|dfV  |  t|dfV  dg|_| 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>   |  tj|dfV  |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>   |  tj|dfV  |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>   |  tj|dfV  |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>   |  tj|dfV  |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>   |  tj|dfV  |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>   |  tj|dfV  |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fV  |  t|dfV  |  t|dfV  | 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fV  |  t|dfV  |  t|dfV  | 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fV  |  t|dfV  |  t|dfV  | 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   |  tj|dfV  |  t|dfV  |  t|dfV  | 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>   |  tj|dfV  | 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fV  | jd dg|_| |_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fV  |  t|dfV  |  t|dfV  | jd dg|_| |_	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fV  |j }| j| dg|_| |_d S r/   )	r1   r   r2   r3   r?   r>   r=   r4   r5   )r7   r8   r9   Z	cur_stater,   r,   r-   pushstate_root_callback2  s
    
z#XQueryLexer.pushstate_root_callbackc                 c   s2   |  tj|dfV  |jd | |_d S )Nr0   rE   )r1   r   	Attributer2   r3   r=   r4   r5   r6   r,   r,   r-   %pushstate_operator_attribute_callback9  s    z1XQueryLexer.pushstate_operator_attribute_callbackc                 c   s\   |  t|dfV  |  t|dfV  |  t|dfV  | 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(:\))#popz(\(:)#pushz[^:)]z([^:)]|:|\))\s+
whitespacez(\})z\(: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)(\()?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):=|=|,|>=|>>|>|\[|\(|<=|<<|<|-|!=|\|\||\|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}u   \t|\r|\n|[ -퟿]|[-�]|i   i processing_instruction_contentz\?>z]]>z(/>)>rI   "quot_attribute_content'apos_attribute_contentrJ   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]+))!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>   ZncnamestartcharZ
ncnamecharZncnameZpitarget_namestartcharZpitarget_namecharZpitargetZprefixednameZunprefixednameZqnameZ	entityrefZcharrefZstringdoubleZstringsingleZelementcontentcharZquotattrcontentcharZaposattrcontentcharr%   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
   ZWordr   r   DoubleSingler   r   VariableZ	NamespaceZ	DecoratorDeclarationZTyper   r   rA   r(   rl   r   r   FloatIntegerZPseudor)   r+   r,   r,   r,   r-   r   =   s  	

  
 
 
 
 
 
 
 =





  

 

 
  
 
 
 
 
-	







	







   


      
  
 
    
   c                   @   s  e Zd ZdZdZddgZddgZddg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   zr
    For QML files. See http://doc.qt.digia.com/4.7/qdeclarativeintroduction.html.

    .. versionadded:: 1.6
    ZQMLZqmlZqbsz*.qmlz*.qbszapplication/x-qmlzapplication/x-qt.qbs+qmlrq   z<!--z//.*?\nz	/\*.*?\*/commentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)ro   z(?=/))ro   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   ZRegexr   r
   r   r   r   ZReservedZConstantr   ZBuiltinZOtherr   r   ZHexr   r   r+   r,   r,   r,   r-   r     sj   	   
c                   @   s   e Zd ZdZdZdgZdgZdg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   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
    ZCirruZcirruz*.cirruztext/x-cirruz[^"\\\n]z\\escaper   ro   .z\,z	[^\s"()]+r~   z(?=\n)z\(rp   )ro   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   ZEscaper
   r   r)   r   
Whitespacer   r   r   r+   r,   r,   r,   r-   r   `  sB   



c                   @   s^  e Zd ZdZdZdgZdgZdg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   z5
    For Slim markup.

    .. versionadded:: 2.0
    ZSlimZslimz*.slimztext/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)ro   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   Zcontentr   r   r   r   N)r   r   r   r    r!   r"   r#   r$   r%   
IGNORECASEr'   Z_dotr   r   r   ZClassr)   r   r   r   r   rl   r   r   r   r	   ZPreprocr(   r   ZInterpolr+   r,   r,   r,   r-   r     sf   


	
)$r    r%   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   Zpygments.utilr   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,   r-   <module>   s&   
 ,!     _I7