403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/templates.cpython-39.opt-2.pyc
a

SҼa��@s4ddlZddlmZmZddlmZmZddlmZddl	m
Z
ddlmZddl
mZddlmZmZdd	lmZdd
lmZmZmZmZmZmZmZmZmZddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*ddl+m,Z,m-Z-gd
�Z.Gdd�de�Z/Gdd�de�Z0Gdd�de�Z1Gdd�de�Z2Gdd�de�Z3Gdd�de�Z4Gdd�de�Z5Gdd�de�Z6Gdd�de�Z7Gd d!�d!e�Z8Gd"d#�d#e�Z9Gd$d%�d%e�Z:Gd&d'�d'e�Z;Gd(d)�d)e�Z<Gd*d+�d+e�Z=Gd,d-�d-e�Z>Gd.d/�d/e�Z?Gd0d1�d1e�Z@Gd2d3�d3e�ZAGd4d5�d5e�ZBGd6d7�d7e�ZCGd8d9�d9e�ZDGd:d;�d;e�ZEGd<d=�d=e�ZFGd>d?�d?e�ZGGd@dA�dAe�ZHGdBdC�dCe�ZIGdDdE�dEe�ZJGdFdG�dGe�ZKGdHdI�dIe�ZLGdJdK�dKe�ZMGdLdM�dMe�ZNGdNdO�dOe�ZOGdPdQ�dQe�ZPGdRdS�dSe�ZQGdTdU�dUe�ZRGdVdW�dWe�ZSGdXdY�dYe�ZTGdZd[�d[e�ZUGd\d]�d]e�ZVGd^d_�d_e�ZWGd`da�dae�ZXGdbdc�dce�ZYGddde�dee�ZZGdfdg�dge�Z[Gdhdi�die�Z\Gdjdk�dke�Z]Gdldm�dme�Z^Gdndo�doe�Z_Gdpdq�dqe�Z`Gdrds�dse�ZaGdtdu�due�ZbGdvdw�dwe�ZcGdxdy�dye�ZdGdzd{�d{e�ZeGd|d}�d}e�ZfGd~d�de�ZgGd�d��d�e�ZhGd�d��d�e�ZiGd�d��d�e�ZjGd�d��d�e�ZkGd�d��d�e�ZlGd�d��d�e�ZmGd�d��d�e�ZnGd�d��d�e�ZoGd�d��d�e�ZpGd�d��d�e�ZqGd�d��d�e�ZrdS)��N)�	HtmlLexer�XmlLexer)�JavascriptLexer�
LassoLexer)�CssLexer)�PhpLexer)�PythonLexer)�	PerlLexer)�	JavaLexer�TeaLangLexer)�	YamlLexer)	�Lexer�DelegatingLexer�
RegexLexer�bygroups�include�using�this�default�combined)�Error�Punctuation�
Whitespace�Text�Comment�Operator�Keyword�Name�String�Number�Other�Token)�html_doctype_matches�looks_like_xml)?�HtmlPhpLexer�XmlPhpLexer�CssPhpLexer�JavascriptPhpLexer�ErbLexer�
RhtmlLexer�XmlErbLexer�CssErbLexer�JavascriptErbLexer�SmartyLexer�HtmlSmartyLexer�XmlSmartyLexer�CssSmartyLexer�JavascriptSmartyLexer�DjangoLexer�HtmlDjangoLexer�CssDjangoLexer�XmlDjangoLexer�JavascriptDjangoLexer�GenshiLexer�HtmlGenshiLexer�GenshiTextLexer�CssGenshiLexer�JavascriptGenshiLexer�MyghtyLexer�MyghtyHtmlLexer�MyghtyXmlLexer�MyghtyCssLexer�MyghtyJavascriptLexer�
MasonLexer�	MakoLexer�
MakoHtmlLexer�MakoXmlLexer�MakoJavascriptLexer�MakoCssLexer�JspLexer�CheetahLexer�CheetahHtmlLexer�CheetahXmlLexer�CheetahJavascriptLexer�EvoqueLexer�EvoqueHtmlLexer�EvoqueXmlLexer�ColdfusionLexer�ColdfusionHtmlLexer�ColdfusionCFCLexer�
VelocityLexer�VelocityHtmlLexer�VelocityXmlLexer�SspLexer�TeaTemplateLexer�LassoHtmlLexer�
LassoXmlLexer�
LassoCssLexer�LassoJavascriptLexer�HandlebarsLexer�HandlebarsHtmlLexer�YamlJinjaLexer�LiquidLexer�	TwigLexer�
TwigHtmlLexer�
Angular2Lexer�Angular2HtmlLexerc@sBeZdZdZdgZdgZe�dej�Z	dd�Z
dd�Zd	d
�ZdS)r(ZERBZerbzapplication/x-ruby-templatingz*(<%%|%%>|<%=|<%#|<%-|<%|-%>|%>|^%[^%].*?$)cKs2ddlm}|fi|��|_tj|fi|��dS)Nr)�	RubyLexer)Zpygments.lexers.rubyrc�
ruby_lexerr
�__init__)�self�optionsrc�rh�=/usr/lib/python3.9/site-packages/pygments/lexers/templates.pyreBszErbLexer.__init__ccs |j�|�}|��d}}�z�|dkrN|��}|t|fV|t|�7}d}q |dk�r�|��}|dvr�|t|fV|d7}d}�q|dkr�|tj|fV|��}|dt|fV|dt|�7}d}n�|dv�r4|tj|fV|t|�7}|��}d}|j�	|�D]\}}	}
|||	|
fV�q|t|�7}d}n�|dv�r\|t
|fV|t|�7}d}n\|tj|dfVd}|j�	|dd��D] \}}	}
|d||	|
fV�q�|t|�7}d}q |dkr |��}|dv�r�|t|fVn|tj|fV|t|�7}d}q Wnt�yYdS0dS)	Nr�)z<%%z%%>�z<%#�)�<%z<%=z<%-)�%>z-%>)�	_block_re�split�reverse�popr �lenr�Preprocrd�get_tokens_unprocessedr�
IndexError)rf�text�tokens�state�idx�val�tag�dataZr_idxZr_tokenZr_valuerhrhriruGsf


�
�

zErbLexer.get_tokens_unprocessedcCsd|vrd|vrdSdS)Nrmrn皙�����?rh�rwrhrhri�analyse_text�szErbLexer.analyse_textN)
�__name__�
__module__�__qualname__�name�aliases�	mimetypes�re�compile�Mrorerur�rhrhrhrir(1sDr(c
@s�eZdZdZdgZdgZdgZejej	BZ
defdee
je
e
j�fdee
jeedd	�e
j�fd
ee
jeje�dfde
jdfgdefde
jd
fde
jdfdejfdejfdefdejfdefdejfdejfdejfgd�Zdd�ZdS)r-ZSmarty�smarty�*.tplzapplication/x-smarty�[^{]+z(\{)(\*.*?\*)(\})z(\{php\})(.*?)(\{/php\})T)Zstartinlinez(\{)(/?[a-zA-Z_]\w*)(\s*)�\{�\s+�#push�\}�#popz#[a-zA-Z_]\w*#z\$[a-zA-Z_]\w*(\.\w+)*z[~!%^&*()+=|\[\]:;,.<>/?@-]�(true|false|null)\b�>[0-9](\.[0-9]*)?(eE[+-][0-9])?[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?�"(\\\\|\\[^\\]|[^"\\])*"�'(\\\\|\\[^\\]|[^'\\])*'�[a-zA-Z_]\w*)�rootr�cCsXd}t�d|�r|d7}t�d|�r,|d7}t�d|�r@|d7}t�d|�rT|d7}|S)N�z\{if\s+.*?\}.*?\{/if\}�333333�?z\{include\s+file=.*?\}z \{foreach\s+.*?\}.*?\{/foreach\}z	\{\$.*?\}�{�G�z�?�r��search�rw�rvrhrhrir��szSmartyLexer.analyse_textN)r�r�r�r�r��	filenamesr�r��	MULTILINE�DOTALL�flagsr rrrtrrr�Functionr�Variablerr�Constantrr�Double�Single�	Attributerxr�rhrhrhrir-�sF����
�

���r-c@s�eZdZdZdgZddgZejejBZ	dZ
defdee
je
e
j�fdee
je
�fd	e
d
ee
jeje
je�dfd	e
dee
jeje
j�fd
edfge
ejfdedfde
deeej�dfdedfed�gdefdedfde
dejfed�gdefed�dedfgd
edfdefdefdejfdejfd efd!efd"ejfdedfd#edfd$edfdedfdedfdedfgd%�Zd&d'�Zd(S))rRZVelocityZvelocity�*.vm�*.fhtmlr�z[^{#$]+z(#)(\*.*?\*)(#)z
(##)(.*?$)z(#\{?)(z
)(\}?)(\s?\()�directiveparamsz)(\}|\b)z\$!?\{?�variablez\(�
funcparamsz(\.)(�)r�r�r�z=(&&|\|\||==?|!=?|[-<>+*%&|^/])|\b(eq|ne|gt|lt|ge|le|not|in)\bz\[�
rangeoperatorz\bz\.\.z\]r�z[,:]r�r�z0[xX][0-9a-fA-F]+[Ll]?z
\b[0-9]+\br��\)r�)r�r�r�r�r�cCsdd}t�d|tj�r|d7}t�d|tj�r4|d7}t�d|tj�rL|d7}t�d|�r`|d7}|S)	Nr�z #\{?macro\}?\(.*?\).*?#\{?end\}?g�?z#\{?if\}?\(.+?\).*?#\{?end\}?r�z"#\{?foreach\}?\(.+?\).*?#\{?end\}?z6\$!?\{?[a-zA-Z_]\w*(\([^)]*\))?(\.\w+(\([^)]*\))?)*\}?r��r�r�r�r�rhrhrir�s�zVelocityLexer.analyse_textN)r�r�r�r�r�r�r�r�r�r�Z
identifierr rrrtrr�rr�rrrrrr�r�rrr�rxr�rhrhrhrirR�sr�
�
�
��
��	�����4rRcs4eZdZdZdgZddgZdgZ�fdd�Z�ZS)rSz
HTML+Velocityz
html+velocity�*.htmlr�ztext/html+velocitycst�jttfi|��dS�N)�superrerrR�rfrg��	__class__rhrire&szVelocityHtmlLexer.__init__)	r�r�r�r�r��alias_filenamesr�re�
__classcell__rhrhr�rirSs
rScs<eZdZdZdgZddgZdgZ�fdd�Zdd	�Z�Z	S)
rTzXML+Velocityzxml+velocity�*.xmlr�zapplication/xml+velocitycst�jttfi|��dSr�)r�rerrRr�r�rhrire6szVelocityXmlLexer.__init__cCs"t�|�d}t|�r|d7}|S�Nr�r~)rRr�r#r�rhrhrir�9szVelocityXmlLexer.analyse_text�
r�r�r�r�r�r�r�rer�r�rhrhr�rirT*srTc@sxeZdZdZddgZddgZejejBZ	de
fdejdfd	efd
e
ejeeeejeejeeeej�fde
ejeeeejeejeeeej�fde
ejeeeej�d
fde
ejee�d
fde
fgde
eeej�fde
eeeeej�fdejfdefdejfdejfdejfdejfdejfdefdefgdefde
eej�dfed�gdefde
eej�dfed�d efgd!�Zd"d#�Zd$S)%r2zDjango/JinjaZdjangoZjinjazapplication/x-django-templatingzapplication/x-jinjar��\{\{�varz	\{#.*?#\}zJ(\{%)(-?\s*)(comment)(\s*-?)(%\})(.*?)(\{%)(-?\s*)(endcomment)(\s*-?)(%\})�B(\{%)(-?\s*)(raw)(\s*-?)(%\})(.*?)(\{%)(-?\s*)(endraw)(\s*-?)(%\})z'(\{%)(-?\s*)(filter)(\s+)([a-zA-Z_]\w*)�block�(\{%)(-?\s*)([a-zA-Z_]\w*)r�z(\|)(\s*)([a-zA-Z_]\w*)z#(is)(\s+)(not)?(\s+)?([a-zA-Z_]\w*)z%(_|true|false|none|True|False|None)\bzm(in|as|reversed|recursive|not|and|or|is|if|else|import|with(?:(?:out)?\s*context)?|scoped|ignore\s+missing)\bz(loop|block|super|forloop)\bz[a-zA-Z_][\w-]*z\.\w+�:?"(\\\\|\\[^\\]|[^"\\])*"�:?'(\\\\|\\[^\\]|[^'\\])*'z ([{}()\[\]+\-*/%,:~]|[><=]=?|!=)r�r��
(-?)(\}\})r��varnames�	(-?)(%\})�.)r�r�r�r�cCsPd}t�d|�dur|d7}t�d|�dur4|d7}t�d|�durL|d7}|S)Nr�z\{%\s*(block|extends)r~z\{%\s*if\s*.*?%\}皙�����?z\{\{.*?\}\}r�r�rhrhrir��szDjangoLexer.analyse_textN)r�r�r�r�r�r�r�r��Sr�r rrtrrrrr�r�Pseudo�Builtinr�rr�r�rrrrxr�rhrhrhrir2@sv	
���������������9r2c@s�eZdZdZdgZddgZdgZddefdee	j
ee	je	j
ee
�e	j
�fd	ee	j
e	je	j
ee�e	j
�fd
ee	j
e	jee�e	j
�fdee	j
e	jee�e	j
�fde	j
fd
ee	j
ee�e	j
�fdefdee	j
ee�e�fdeee�fg
iZdS)r<ZMyghtyZmyghtyz*.mytZautodelegatezapplication/x-myghtyr�r��3(?s)(<%(?:def|method))(\s*)(.*?)(>)(.*?)(</%\2\s*>)z#(?s)(<%\w+)(.*?)(>)(.*?)(</%\2\s*>)z(<&[^|])(.*?)(,.*?)?(&>)�(?s)(<&\|)(.*?)(,.*?)?(&>)�</&>�(?s)(<%!?)(.*?)(%>)�(?<=^)#[^\n]*(\n|\Z)�(?<=^)(%)([^\n]*)(\n|\Z)��(?sx)
                 (.+?)               # anything, followed by:
                 (?:
                  (?<=\n)(?=[%#]) |  # an eval or comment line
                  (?=</?[%&]) |      # a substitution or block or
                                     # call start or end
                                     # - don't consume
                  (\\\n) |           # an escaped newline
                  \Z                 # end of string
                 )N)r�r�r�r�r�r�r�rrr�Tagr�rrrrr rrxrhrhrhrir<�sF

��
������	���r<cs,eZdZdZdgZdgZ�fdd�Z�ZS)r=zHTML+Myghtyzhtml+myghtyztext/html+myghtycst�jttfi|��dSr�)r�rerr<r�r�rhrire�szMyghtyHtmlLexer.__init__�r�r�r�r�r�r�rer�rhrhr�rir=�sr=cs,eZdZdZdgZdgZ�fdd�Z�ZS)r>z
XML+Myghtyz
xml+myghtyzapplication/xml+myghtycst�jttfi|��dSr�)r�rerr<r�r�rhrire�szMyghtyXmlLexer.__init__r�rhrhr�rir>�sr>cs0eZdZdZddgZgd�Z�fdd�Z�ZS)r@zJavaScript+Myghtyzjavascript+myghtyz	js+myghty)zapplication/x-javascript+myghtyztext/x-javascript+myghtyztext/javascript+mygthycst�jttfi|��dSr�)r�rerr<r�r�rhrire�szMyghtyJavascriptLexer.__init__r�rhrhr�rir@�sr@cs,eZdZdZdgZdgZ�fdd�Z�ZS)r?z
CSS+Myghtyz
css+myghtyztext/css+myghtycst�jttfi|��dSr�)r�rerr<r�r�rhrireszMyghtyCssLexer.__init__r�rhrhr�rir?�sr?c@seZdZdZdgZgd�ZdgZddefdee	j
eje	j
�fdee	j
ee	j
e	j
ee�e	j
�fd	ee	j
d
d
d
ee�e	j
�fdee	j
e	j
ee�e	j
�fdee	j
e	j
ee�e	j
�fd
e	j
fdee	j
ee�e	j
�fdefdee	j
ee�e�fdeee�e�fgiZdd�Zd
S)rAZMasonZmason)z*.mz*.mhtmlz*.mcz*.miZautohandlerZdhandlerzapplication/x-masonr�r�z(?s)(<%doc>)(.*?)(</%doc>)r�z%(?s)(<%(\w+)(.*?)(>))(.*?)(</%\2\s*>)Nz(?s)(<&[^|])(.*?)(,.*?)?(&>)r�r�r�r�r�r�cCs6d}t�d|�durd}nt�d|tj�dur2d}|S)Nr�z</%(class|doc|init)>g�?z<&.+&>g)\��(�?r�)rw�resultrhrhrir�4szMasonLexer.analyse_text)r�r�r�r�r�r�r�rrrr�r�	Multiliner�rrr	r rrrxr�rhrhrhrirAsJ	�
�������	���!rAc
@s4eZdZdZdgZdgZdgZdeej	e
jee
�fdeej	e
jee�e
�fdeej	e
jej	�fde
jfd	ee
jej�d
fdee
jeje
j�fde
jd
fdee
jee�e
j�fdee
jee�e
j�fdee
e�fdefgde
jfdejfed
�gdeejee�fde
jdfdefgdedfdedfdedfgd�ZdS)rBZMakoZmakoz*.maozapplication/x-makoz(\s*)(%)(\s*end(?:\w+))(\n|\Z)z(\s*)(%)([^\n]*)(\n|\Z)z(\s*)(##[^\n]*)(\n|\Z)z(?s)<%doc>.*?</%doc>z
(<%)([\w.:]+)r|z(</%)([\w.:]+)(>)z<%(?=([\w.:]+))�	ondeftagsz(?s)(<%(?:!?))(.*?)(%>)z(\$\{)(.*?)(\})a\(?sx)
                (.+?)                # anything, followed by:
                (?:
                 (?<=\n)(?=%|\#\#) | # an eval or comment line
                 (?=\#\*) |          # multiline comment
                 (?=</?%) |          # a python block
                                     # call start or end
                 (?=\$\{) |          # a substitution
                 (?<=\n)(?=\s*%) |
                                     # - don't consume
                 (\\\n) |            # an escaped newline
                 \Z                  # end of string
                )
            r�rmz'(?<=<%)(include|inherit|namespace|page)z((?:\w+)\s*=)(\s*)(".*?")�/?\s*>r��".*?"�'.*?'�[^\s>]+)r�r�r|�attrN)r�r�r�r�r�r�r�rrrrrtrr rrr�r�rr�rrr�rrxrhrhrhrirB=s^
�����
��
��"��
���rBcs,eZdZdZdgZdgZ�fdd�Z�ZS)rCz	HTML+Makoz	html+makoztext/html+makocst�jttfi|��dSr�)r�rerrBr�r�rhrire�szMakoHtmlLexer.__init__r�rhrhr�rirC�srCcs,eZdZdZdgZdgZ�fdd�Z�ZS)rDzXML+Makozxml+makozapplication/xml+makocst�jttfi|��dSr�)r�rerrBr�r�rhrire�szMakoXmlLexer.__init__r�rhrhr�rirD�srDcs0eZdZdZddgZgd�Z�fdd�Z�ZS)rEzJavaScript+Makozjavascript+makozjs+mako)zapplication/x-javascript+makoztext/x-javascript+makoztext/javascript+makocst�jttfi|��dSr�)r�rerrBr�r�rhrire�szMakoJavascriptLexer.__init__r�rhrhr�rirE�srEcs,eZdZdZdgZdgZ�fdd�Z�ZS)rFzCSS+Makozcss+makoz
text/css+makocst�jttfi|��dSr�)r�rerrBr�r�rhrire�szMakoCssLexer.__init__r�rhrhr�rirF�srFc@seZdZdd�ZdS)�CheetahPythonLexerccsNtfi|j��}|�|�D].\}}}|tjkr<|dkr<tj}|||fVqdS)N�$)rrgrur!rrrt)rfrwZpylexer�pos�type_�valuerhrhriru�s
z)CheetahPythonLexer.get_tokens_unprocessedN)r�r�r�rurhrhrhrir��sr�c@s�eZdZdZddgZddgZddgZdd	ee�fd
efdej	fdej	fd
eej	e
e�ej	�fdeej	e
e��fdeej	e
e�ej	�fdefde
fg	iZdS)rHZCheetahZcheetahZspitfirez*.tmplz*.sptzapplication/x-cheetahzapplication/x-spitfirer�z(##[^\n]*)$z#[*](.|\n)*?[*]#z#end[^#\n]*(?:#|$)z#slurp$z(#[a-zA-Z]+)([^#\n]*)(#|$)z(\$)([a-zA-Z_][\w.]*\w)z(?s)(\$\{!?)(.*?)(\})a(?sx)
                (.+?)               # anything, followed by:
                (?:
                 (?=\#[#a-zA-Z]*) | # an eval comment
                 (?=\$[a-zA-Z_{]) | # a substitution
                 \Z                 # end of string
                )
            r�N)r�r�r�r�r�r�r�rrrtrr�r rrxrhrhrhrirH�s<
���������rHcs0eZdZdZgd�ZddgZ�fdd�Z�ZS)rIzHTML+Cheetah)zhtml+cheetahz
html+spitfireZhtmlcheetahztext/html+cheetahztext/html+spitfirecst�jttfi|��dSr�)r�rerrHr�r�rhrireszCheetahHtmlLexer.__init__r�rhrhr�rirI�srIcs0eZdZdZddgZddgZ�fdd�Z�ZS)rJzXML+Cheetahzxml+cheetahzxml+spitfirezapplication/xml+cheetahzapplication/xml+spitfirecst�jttfi|��dSr�)r�rerrHr�r�rhrireszCheetahXmlLexer.__init__r�rhrhr�rirJsrJcs0eZdZdZgd�Zgd�Z�fdd�Z�ZS)rKzJavaScript+Cheetah)zjavascript+cheetahz
js+cheetahzjavascript+spitfirezjs+spitfire)z application/x-javascript+cheetahztext/x-javascript+cheetahztext/javascript+cheetahz!application/x-javascript+spitfireztext/x-javascript+spitfireztext/javascript+spitfirecst�jttfi|��dSr�)r�rerrHr�r�rhrire*szCheetahJavascriptLexer.__init__r�rhrhr�rirKsrKc
@s�eZdZdZdgZddgZdefdeee	�fdeee	j
�dfed	�d
efgdedfd
ee
�dfdeeeee
��dfdedfdeeee	�dfgdee	j
ee
�e	j
�fdejfgd�ZdS)r9zGenshi TextZ
genshitextzapplication/x-genshi-textz
text/x-genshiz[^#$\s]+z
^(\s*)(##.*)$z	^(\s*)(#)�	directiver�z[#$\s]z\nr�z(?:def|for|if)\s+.*z (choose|when|with)([^\S\n]+)(.*)z(choose|otherwise)\bz(end\w*)([^\S\n]*)(.*)�(?<!\$)(\$\{)(.+?)(\})z(?<!\$)(\$)([a-zA-Z_][\w.]*))r�r�r�N)r�r�r�r�r�r�r rrrrtrrrrrr�rxrhrhrhrir9.s2���	����r9c
@sDeZdZejZdefdeej	e
e�ej	�fdefdej
dfdej
dfed�d	efgd
efdejdfd
ej
dfgdeee
e�e�dfdeee
e�e�dfdedfgd
efdejdfdejdfd
ej
dfgdedfdedfdedfgdedfed�defgdedfed�defgdefed�gdeej	e
e�ej	�fdejfgd�	ZdS)�GenshiMarkupLexerz[^<$]+z(<\?python)(.*?)(\?>)z'<\s*(script|style)\s*.*?>.*?<\s*/\1\s*>z<\s*py:[a-zA-Z0-9]+�pytagz<\s*[a-zA-Z0-9:.]+r|r�z[<$]r�z[\w:-]+\s*=�pyattrr�r�z(")(.*?)(")z(')(.*?)(')r�z
py:[\w-]+\s*=r��"�attr-dstring�'�attr-sstringz[^\s>]*�stringsz[^"'$]+r�z(?<!\$)(\$)([a-zA-Z_][\w\.]*))	r�r�r�r|r�r�r�r�r�N)r�r�r�r�r�r�r rrrtrrrr�rrr�rr�rxrhrhrhrir�Qs^�

�

��


���������r�cs>eZdZdZddgZgd�ZdgZ�fdd�Zdd	�Z�Z	S)
r8zHTML+Genshizhtml+genshizhtml+kid�r��*.htm�*.xhtmlztext/html+genshicst�jttfi|��dSr�)r�rerr�r�r�rhrire�szHtmlGenshiLexer.__init__cCsFd}t�d|�dur|d7}t�d|�dur4|d7}|t�|�dS�Nr�z	\$\{.*?\}皙�����?zpy:(.*?)=["\']r�)r�r�rr�r�rhrhrir��szHtmlGenshiLexer.analyse_textr�rhrhr�rir8�sr8csDeZdZdZgd�ZdgZdgZddgZ�fdd�Zd	d
�Z	�Z
S)r7ZGenshi)ZgenshiZkidz
xml+genshizxml+kidz*.kidr�zapplication/x-genshizapplication/x-kidcst�jttfi|��dSr�)r�rerr�r�r�rhrire�szGenshiLexer.__init__cCsFd}t�d|�dur|d7}t�d|�dur4|d7}|t�|�dSr�)r�r�rr�r�rhrhrir��szGenshiLexer.analyse_text�r�r�r�r�r�r�r�r�rer�r�rhrhr�rir7�sr7cs>eZdZdZgd�ZdgZgd�Z�fdd�Zdd�Z�Z	S)	r;zJavaScript+Genshi Text)z
js+genshitextz	js+genshizjavascript+genshitextzjavascript+genshi�*.js)zapplication/x-javascript+genshiztext/x-javascript+genshiztext/javascript+genshicst�jttfi|��dSr�)r�rerr9r�r�rhrire�szJavascriptGenshiLexer.__init__cCst�|�dS�N皙�����?�r7r�rrhrhrir��sz"JavascriptGenshiLexer.analyse_textr�rhrhr�rir;�sr;cs<eZdZdZddgZdgZdgZ�fdd�Zdd	�Z�Z	S)
r:zCSS+Genshi Textzcss+genshitextz
css+genshi�*.cssztext/css+genshicst�jttfi|��dSr�)r�rerr9r�r�rhrire�szCssGenshiLexer.__init__cCst�|�dSr�r�rrhrhrir��szCssGenshiLexer.analyse_textr�rhrhr�rir:�sr:csDeZdZdZgd�ZdgZgd�ZdgZ�fdd�Zdd	�Z	�Z
S)
r)ZRHTML)Zrhtmlzhtml+erbz	html+rubyz*.rhtmlr�ztext/html+rubycst�jttfi|��dSr�)r�rerr(r�r�rhrire�szRhtmlLexer.__init__cCs"t�|�d}t|�r|d7}|S�Nr�g�?)r(r�r"r�rhrhrir��szRhtmlLexer.analyse_textr�rhrhr�rir)�sr)cs<eZdZdZddgZdgZdgZ�fdd�Zdd	�Z�Z	S)
r*zXML+Rubyzxml+rubyzxml+erbr�zapplication/xml+rubycst�jttfi|��dSr�)r�rerr(r�r�rhrire	szXmlErbLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)r(r�r#r�rhrhrir�szXmlErbLexer.analyse_textr�rhrhr�rir*�sr*cs<eZdZdZddgZdgZdgZ�fdd�Zdd	�Z�Z	S)
r+zCSS+Rubyzcss+rubyzcss+erbr�z
text/css+rubycst�jttfi|��dSr�)r�rerr(r�r�rhrireszCssErbLexer.__init__cCst�|�dSr��r(r�rrhrhrir� szCssErbLexer.analyse_textr�rhrhr�rir+sr+cs>eZdZdZgd�ZdgZgd�Z�fdd�Zdd�Z�Z	S)	r,zJavaScript+Ruby)zjavascript+rubyzjs+rubyzjavascript+erbzjs+erbr�)zapplication/x-javascript+rubyztext/x-javascript+rubyztext/javascript+rubycst�jttfi|��dSr�)r�rerr(r�r�rhrire1szJavascriptErbLexer.__init__cCst�|�dSr�r�rrhrhrir�4szJavascriptErbLexer.analyse_textr�rhrhr�rir,$sr,csDeZdZdZdgZdgZgd�Zgd�Z�fdd�Zdd	�Z	�Z
S)
r$zHTML+PHPzhtml+phpz*.phtml)�*.phpr�r�r��
*.php[345])zapplication/x-phpzapplication/x-httpd-phpzapplication/x-httpd-php3zapplication/x-httpd-php4zapplication/x-httpd-php5cst�jttfi|��dSr�)r�rerrr�r�rhrireHszHtmlPhpLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)rr�r"r�rhrhrir�KszHtmlPhpLexer.analyse_textr�rhrhr�rir$8sr$cs<eZdZdZdgZgd�ZdgZ�fdd�Zdd�Z�Z	S)	r%zXML+PHPzxml+php)r�r�r�zapplication/xml+phpcst�jttfi|��dSr�)r�rerrr�r�rhrire\szXmlPhpLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)rr�r#r�rhrhrir�_szXmlPhpLexer.analyse_textr�rhrhr�rir%Rsr%cs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	r&zCSS+PHPzcss+phpr�ztext/css+phpcst�jttfi|��dSr�)r�rerrr�r�rhrirepszCssPhpLexer.__init__cCst�|�dSr��rr�rrhrhrir�sszCssPhpLexer.analyse_textr�rhrhr�rir&fsr&cs>eZdZdZddgZdgZgd�Z�fdd�Zdd	�Z�Z	S)
r'zJavaScript+PHPzjavascript+phpzjs+phpr�)zapplication/x-javascript+phpztext/x-javascript+phpztext/javascript+phpcst�jttfi|��dSr�)r�rerrr�r�rhrire�szJavascriptPhpLexer.__init__cCs
t�|�Sr�r�rrhrhrir��szJavascriptPhpLexer.analyse_textr�rhrhr�rir'wsr'cs<eZdZdZdgZgd�ZdgZ�fdd�Zdd�Z�Z	S)	r.zHTML+Smartyzhtml+smarty)r�r�r�r�ztext/html+smartycst�jttfi|��dSr�)r�rerr-r�r�rhrire�szHtmlSmartyLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)r-r�r"r�rhrhrir��szHtmlSmartyLexer.analyse_textr�rhrhr�rir.�sr.cs<eZdZdZdgZddgZdgZ�fdd�Zdd	�Z�Z	S)
r/z
XML+Smartyz
xml+smartyr�r�zapplication/xml+smartycst�jttfi|��dSr�)r�rerr-r�r�rhrire�szXmlSmartyLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)r-r�r#r�rhrhrir��szXmlSmartyLexer.analyse_textr�rhrhr�rir/�sr/cs<eZdZdZdgZddgZdgZ�fdd�Zdd	�Z�Z	S)
r0z
CSS+Smartyz
css+smartyr�r�ztext/css+smartycst�jttfi|��dSr�)r�rerr-r�r�rhrire�szCssSmartyLexer.__init__cCst�|�dSr��r-r�rrhrhrir��szCssSmartyLexer.analyse_textr�rhrhr�rir0�sr0cs@eZdZdZddgZddgZgd�Z�fdd�Zd	d
�Z�Z	S)r1zJavaScript+Smartyzjavascript+smartyz	js+smartyr�r�)zapplication/x-javascript+smartyztext/x-javascript+smartyztext/javascript+smartycst�jttfi|��dSr�)r�rerr-r�r�rhrire�szJavascriptSmartyLexer.__init__cCst�|�dSr�r�rrhrhrir��sz"JavascriptSmartyLexer.analyse_textr�rhrhr�rir1�sr1cs@eZdZdZgd�Zgd�ZddgZ�fdd�Zdd	�Z�Z	S)
r3zHTML+Django/Jinja)zhtml+djangoz
html+jinjaZ
htmldjangor�ztext/html+djangoztext/html+jinjacst�jttfi|��dSr�)r�rerr2r�r�rhrire�szHtmlDjangoLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)r2r�r"r�rhrhrir��szHtmlDjangoLexer.analyse_textr�rhrhr�rir3�sr3cs>eZdZdZddgZdgZddgZ�fdd�Zd	d
�Z�Z	S)r5zXML+Django/Jinjaz
xml+djangoz	xml+jinjar�zapplication/xml+djangozapplication/xml+jinjacst�jttfi|��dSr�)r�rerr2r�r�rhrire�szXmlDjangoLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)r2r�r#r�rhrhrir�szXmlDjangoLexer.analyse_textr�rhrhr�rir5�sr5cs>eZdZdZddgZdgZddgZ�fdd�Zd	d
�Z�Z	S)r4zCSS+Django/Jinjaz
css+djangoz	css+jinjar�ztext/css+djangoztext/css+jinjacst�jttfi|��dSr�)r�rerr2r�r�rhrireszCssDjangoLexer.__init__cCst�|�dSr��r2r�rrhrhrir�szCssDjangoLexer.analyse_textr�rhrhr�rir4	sr4cs>eZdZdZgd�ZdgZgd�Z�fdd�Zdd�Z�Z	S)	r6zJavaScript+Django/Jinja)zjavascript+djangoz	js+djangozjavascript+jinjazjs+jinjar�)zapplication/x-javascript+djangozapplication/x-javascript+jinjaztext/x-javascript+djangoztext/x-javascript+jinjaztext/javascript+djangoztext/javascript+jinjacst�jttfi|��dSr�)r�rerr2r�r�rhrire,szJavascriptDjangoLexer.__init__cCst�|�dSr�r�rrhrhrir�/sz"JavascriptDjangoLexer.analyse_textr�rhrhr�rir6sr6c@sBeZdZdedfdefdefdefgdedfdee�fgd	�Zd
S)�JspRootLexer�<%\S?�seczC</?jsp:(forward|getProperty|include|plugin|setProperty|useBean).*?>�[^<]+�<rnr��[\w\W]+?(?=%>|\Z)�r�rN)r�r�r�rr rr
rxrhrhrhrir�3s
��	
��r�cs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rGzJava Server PageZjspz*.jspzapplication/x-jspcst�jttfi|��dSr��r�rerr�r�r�rhrireWszJspLexer.__init__cCs:t�|�d}t|�r|d7}d|vr6d|vr6|d7}|S�Nr�r~rmrnr�)r
r�r#r�rhrhrir�ZszJspLexer.analyse_text�
r�r�r�r�r�r�r�rer�r�rhrhr�rirGLsrGc@s�eZdZdZdgZdgZdgZejZ	de
fdejdfde
fd	ejfd
e
eejedee�fde
eejedeee�e�fd
e
eejedee�e�fde
eej�fde
edee�ejdde�fde
fg
dejfdejdfdejdfdejfgd�Zdd�ZdS)rLZEvoqueZevoquez*.evoquezapplication/x-evoquez[^#$]+z#\[�commentz\$\$z\$\w+:[^$\n]*\$z'(\$)(begin|end)(\{(%)?)(.*?)((?(4)%)\})Nz>(\$)(evoque|overlay)(\{(%)?)(\s*[#\w\-"\'.]+)?(.*?)((?(4)%)\})z!(\$)(\w+)(\{(%)?)(.*?)((?(4)%)\})z(\$)(else|rof|fi)z%(\$\{(%)?)(.*?)((!)(.*?))?((?(2)%)\})�#z[^\]#]r�z\]#r�z[\]#])r�rcCsd|vrdSdS)Nz$evoquerjrhrrhrhrir��szEvoqueLexer.analyse_text)r�r�r�r�r�r�r�r�r�r�r rr�rrrr�rrrrxr�rhrhrhrirLcsN
��
����
���

��'rLcs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rMzHTML+Evoquezhtml+evoquer�ztext/html+evoquecst�jttfi|��dSr�)r�rerrLr�r�rhrire�szEvoqueHtmlLexer.__init__cCs
t�|�Sr��rLr�rrhrhrir��szEvoqueHtmlLexer.analyse_textrrhrhr�rirM�srMcs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rNz
XML+Evoquez
xml+evoquer�zapplication/xml+evoquecst�jttfi|��dSr�)r�rerrLr�r�rhrire�szEvoqueXmlLexer.__init__cCs
t�|�Sr�r
rrhrhrir��szEvoqueXmlLexer.analyse_textrrhrhr�rirN�srNc@s�eZdZdZdgZgZgZejZ	de
jfde
jfde
fde
fde
fde
fd	e
fd
e
fde
fdejd
fdejfdefdefdejfdejfdeejee�fdejfdefdefgdejfdejfdejfdejfdejdfgd�ZdS)rOZcfstatementZcfsz//.*?\nz/\*(?:.|\n)*?\*/z\+\+|--z
[-+*/^&=!]z<=|>=|<|>|==zmod\bz"(eq|lt|gt|lte|gte|not|is|and|or)\bz\|\||&&z\?r��stringr��\d+z�(if|else|len|var|xml|default|break|switch|component|property|function|do|try|catch|in|continue|for|return|while|required|any|array|binary|boolean|component|date|guid|numeric|query|string|struct|uuid|case)\br�zD(application|session|client|cookie|super|this|variables|arguments)\bz([a-z_$][\w.]*)(\s*)(\()z
[a-z_$][\w.]*z[()\[\]{};:,.\\]r�z""z#.+?#z[^"#]+r	r�)r�rN)r�r�r�r�r�r�r�r��
IGNORECASEr�rr�r�rrr�rrr�rrr�rrr�ZInterprxrhrhrhrirO�sL
����
��rOc
@s�eZdZdZdgZgZgZdefed�defgde	j
dfde	fd	ejd
fde
ejee�ej�fde
ejee�ej�fgd
efde
eee�e�fdejdfed�defdefgde	j
dfde	j
dfde	j
fgd�ZdS)�ColdfusionMarkupLexerZ
Coldfusion�cfr�tagsz<[^<>]*z<!---�	cfcommentz(?s)<!--.*?-->z
<cfoutput.*?>�cfoutputz((?s)(<cfscript.*?>)(.+?)(</cfscript.*?>)z�(?s)(</?cf(?:component|include|if|else|elseif|loop|return|dbinfo|dump|abort|location|invoke|throw|file|savecontent|mailpart|mail|header|content|zip|image|lock|argument|try|catch|break|directory|http|set|function|param)\b)(.*?)((?<!\\)>)z[^#<]+z(#)(.*?)(#)z</cfoutput.*?>r�z(?s)<[^<>]*r	r�z--->z([^<-]|<(?!!---)|-(?!-->))+)r�rrrN)r�r�r�r�r�r�r�r rrr�rr�rrrOrrxrhrhrhrir�s@�

����
�

��rcs4eZdZdZdgZddgZdgZ�fdd�Z�ZS)rPzColdfusion HTMLZcfmz*.cfmz*.cfmlzapplication/x-coldfusioncst�jttfi|��dSr�)r�rerrr�r�rhrire)szColdfusionHtmlLexer.__init__�	r�r�r�r�r�r�r�rer�rhrhr�rirP s
rPcs0eZdZdZdgZdgZgZ�fdd�Z�ZS)rQzColdfusion CFCZcfcz*.cfccst�jttfi|��dSr�)r�rerPrOr�r�rhrire8szColdfusionCFCLexer.__init__rrhrhr�rirQ-s
rQcs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rUzScalate Server PageZsspz*.sspzapplication/x-sspcst�jttfi|��dSr�rr�r�rhrireGszSspLexer.__init__cCsDd}t�d|�r|d7}t|�r(|d7}d|vr@d|vr@|d7}|S)Nr�zval \w+\s*:g333333�?r�rmrnr�)r�r�r#r�rhrhrir�JszSspLexer.analyse_textrrhrhr�rirU<srUc@s<eZdZdedfdefdefgdedfdee�fgd�Zd	S)
�TeaTemplateRootLexerr�rrrrnr�rrN)r�r�r�rr rrrxrhrhrhrirUs
�
��rcs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rVZTeaZteaz*.teaz
text/x-teacst�jttfi|��dSr�)r�rerrr�r�rhrirevszTeaTemplateLexer.__init__cCs:t�|�d}t|�r|d7}d|vr6d|vr6|d7}|Sr)rr�r#r�rhrhrir�yszTeaTemplateLexer.analyse_textrrhrhr�rirVksrVcs>eZdZdZdgZgd�Zgd�Z�fdd�Zdd�Z�Z	S)	rWz
HTML+Lassoz
html+lasso)r�r�r��*.lasso�*.lasso[89]�*.incl�*.inc�*.las)ztext/html+lassozapplication/x-httpd-lassozapplication/x-httpd-lasso[89]cst�jttfi|��dSr�)r�rerrr�r�rhrire�szLassoHtmlLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)rr�r"r�rhrhrir��szLassoHtmlLexer.analyse_textr�rhrhr�rirW�s
rWcs<eZdZdZdgZgd�ZdgZ�fdd�Zdd�Z�Z	S)	rXz	XML+Lassoz	xml+lasso)r�rrrrrzapplication/xml+lassocst�jttfi|��dSr�)r�rerrr�r�rhrire�szLassoXmlLexer.__init__cCs"t�|�d}t|�r|d7}|Sr�)rr�r#r�rhrhrir��szLassoXmlLexer.analyse_textr�rhrhr�rirX�srXcs:eZdZdZdgZdgZdgZ�fdd�Zdd�Z�Z	S)	rYz	CSS+Lassoz	css+lassor�ztext/css+lassocs"d|d<t�jttfi|��dS�NTZrequiredelimiters)r�rerrr�r�rhrire�szLassoCssLexer.__init__cCs6t�|�d}t�d|�r"|d7}d|vr2|d7}|S)Nr�z
\w+:[^;]+;r�zpadding:)rr�r�r�r�rhrhrir��szLassoCssLexer.analyse_textr�rhrhr�rirY�srYcs>eZdZdZddgZdgZgd�Z�fdd�Zdd	�Z�Z	S)
rZzJavaScript+Lassozjavascript+lassozjs+lassor�)zapplication/x-javascript+lassoztext/x-javascript+lassoztext/javascript+lassocs"d|d<t�jttfi|��dSr)r�rerrr�r�rhrire�szLassoJavascriptLexer.__init__cCst�|�d}|Sr�)rr�r�rhrhrir��sz!LassoJavascriptLexer.analyse_textr�rhrhr�rirZ�srZc
@sBeZdZdZdgZdefdefdeeje	�dfdeej
ejej�dfdeej
e	�dfgd	e	fd
ejdfdeeej
�dfd
ee
je�fdeee	e�fdeee	e
j�fdeee	e�dfed�gd	e	fdedfdeee	e
je	�fdeee	eedd��fde
jfed�gde
jfde
jfde
jfged�dejfdejfdefgd�Zd S)!r[Z
HandlebarsZ
handlebarsr�z\{\{!.*\}\}z
(\{\{\{)(\s*)r|z(\{\{)([#~/]+)([^\s}]*)�(\{\{)(\s*)r�z\}\}\}r�z
(~?)(\}\})z([^\s}]+)(=)z(>)(\s*)(@partial-block)z(#?>)(\s*)([\w-]+)z(>)(\s*)(\()�dynamic-partial�genericr�z(lookup)(\s+)(\.|this)(\s+)z(lookup)(\s+)(\S+)r��ryz[\w-]+z[()/@a-zA-Z][\w-]*z\.[\w-]+z(this\/|\.\/|(\.\.\/)+)[\w-]+r�r�r�)r�r|rr�rN)r�r�r�r�r�r rr�Specialrrtrr�rrrr�rrrrr�rr�r�rxrhrhrhrir[�sX
��
���
��
����r[cs6eZdZdZdgZddgZddgZ�fdd�Z�ZS)	r\zHTML+Handlebarszhtml+handlebarsz*.handlebarsz*.hbsztext/html+handlebarsztext/x-handlebars-templatecst�jttfi|��dSr�)r�rerr[r�r�rhrireAszHandlebarsHtmlLexer.__init__rrhrhr�rir\4s
r\cs6eZdZdZgd�ZdgZddgZ�fdd�Z�ZS)r]z
YAML+Jinja)z
yaml+jinjaZsaltZslsz*.slsztext/x-yaml+jinjaz
text/x-slscst�jttfi|��dSr�)r�rerr2r�r�rhrireTszYamlJinjaLexer.__init__rrhrhr�rir]Es

r]c@sfeZdZdZdgZdgZdefdeee	�dfdeee	e
edd��d	fd
efgdej
dfd
eej
e	�eddd�fdeej
e	e�dfdeeje	e
edd�e	e�dfdeeje	e�dfdeeje	e�dfdeej
de	e�dfdeejde	e�dfdeeje	e
edd�ee	�dfdeeje	�dfg
ed�dedfd ed!fged�ded"fd#eejee	�d$fgd edfed%�ed&�ged�ed�d'ee
edd�e	ee	e
edd�e	e�fd(efd)ejfd*ee
edd�e	eje	e
edd��fed�ed�ged�ed+�gd,ee	ede	�dfd-ee	eje	�dfgdedfgd.ed"fgd/e	dfged�d0eeje	e�fd1eee	e
edd�e	e�fed2�ed3�ed4�d5efged6�d7efged6�ed�d7efgd.ed"fed&�gd.ed"fed8�gd9ejfgd:ejfd;efgd<ejfd=ejfgd>ejfd?ejfged4�ed2�ed3�ed�gd@e	fgdAeee	eje	e�d"fd7efgdefdBeee	eje	e�dfd
efgdC�ZdS)Dr^Zliquidz*.liquidr�z
(\{%)(\s*)�tag-or-blockz(\{\{)(\s*)([^\s}]+)rr�outputr�z(if|unless|elsif|case)(?=\s+)�	conditionz(when)(\s+)�end-of-block�
whitespacez(else)(\s*)(%\})r�z!(capture)(\s+)([^\s%]+)(\s*)(%\})r�z(comment)(\s*)(%\})rz(raw)(\s*)(%\})�rawz(end(case|unless|if))(\s*)(%\})Nz(end([^\s%]+))(\s*)(%\})z"(cycle)(\s+)(?:([^\s:]*)(:))?(\s*)�variable-tag-markupz([^\s%]+)(\s*)�
tag-markup�\}\}z\|�filters)r�r�z([^\s|:]+)(:?)(\s*)�
filter-markup�
end-of-tag�default-param-markupz/([^\s=!><]+)(\s*)([=!><]=?)(\s*)(\S+)(\s*)(%\})z\b!z\bnot\bz*([\w.\'"]+)(\s+)(contains)(\s+)([\w.\'"]+)�end-at-whitespacez(\s*)((=|!|>|<)=?)(\s*)z(\s*)(\bcontains\b)(\s*)z%\}r�z([^\s=:]+)(\s*)(=|:)z(\{\{)(\s*)([^\s}])(\s*)(\}\})r�number�keyword�,�param-markupr��variable-param-markupz\b(false|true)\br�z(?<=\w)\.(?=\w)z'[^']*'z"[^"]*"z\d+\.\d+rz[ \t]+z (\{%)(\s*)(endcomment)(\s*)(%\})z(\{%)(\s*)(endraw)(\s*)(%\}))r�r r!r)r*r"z
generic-value�operatorr+r#r-r1r,r2r'r&r/r�rr.rr$rr%) r�r�r�r�r�r�rrrrrrrZReservedrrr�rr�rZWordr�r�r�rr�r�rZFloatZIntegerrrxrhrhrhrir^Xs8��

�����������"���	�����������������������������������r^c@s�eZdZdZdgZdgZejejBZ	dZ
dZde
dZeeZ
defd	ejd
fdefdeejeeeejeejeeeej�fd
eejeeeejeejeeeej�fde
eejeeeej�dfdeejee�dfdefgde
eeeej�fde
eeeeeej�fdejfdefdejfe
ejfde
ejfdefdejfdejfdefdefgdefdeeej�dfed �gdefd!eeej�dfed �d"efgd#�Z d$S)%r_ZTwigZtwigzapplication/x-twigz[\\\w-]|[^\x00-\x7f]z(?:[\\_a-z]|[^\x00-\x7f])z(?:z)*r�r�r�z\{\#.*?\#\}r�zL(\{%)(-?\s*)(verbatim)(\s*-?)(%\})(.*?)(\{%)(-?\s*)(endverbatim)(\s*-?)(%\})z(\{%%)(-?\s*)(filter)(\s+)(%s)r|r�r�z
(\|)(\s*)(%s)z(is)(\s+)(not)?(\s*)(%s)z(?i)(true|false|none|null)\bz�(in|not|and|b-and|or|b-or|b-xor|isif|elseif|else|importconstant|defined|divisibleby|empty|even|iterable|odd|sameasmatches|starts\s+with|ends\s+with)\bz(loop|block|parent)\bz\.z\.[0-9]+r�r�z4([{}()\[\]+\-*/,:~%]|\.\.|\?|:|\*\*|\/\/|!=|[><=]=?)r�r�r�r�r�r�r�)r�r�r�r|N)!r�r�r�r�r�r�r�r�r�r�Z_ident_charZ_ident_beginZ
_ident_endZ_ident_innerr rrtrrrrr�rr�r�r�rrr�r�rrrxrhrhrhrir_&s~

���������������r_cs2eZdZdZdgZdgZdgZ�fdd�Z�ZS)r`z	HTML+Twigz	html+twigz*.twigztext/html+twigcst�jttfi|��dSr�)r�rerr_r�r�rhrire�szTwigHtmlLexer.__init__rrhrhr�rir`ys
r`c@s�eZdZdZdgZdefdeeje	�dfdee
eje
e	e
e	�dfdee
eje
e	�fd	ee
eje	e
e	�dfd
ee
eje	�fgde	fdejd
fdejfdejfdejfdefdejfdejfdee
e	ee	e
e	ee	�fg	ded
fded
fded
fgd�ZdS)raZAngular2Zng2z	[^{([*#]+r�ngExpressionz&([([]+)([\w:.-]+)([\])]+)(\s*)(=)(\s*)r�z([([]+)([\w:.-]+)([\])]+)(\s*)z([*#])([\w:.-]+)(\s*)(=)(\s*)z([*#])([\w:.-]+)(\s*)z\s+(\|\s+)?r(r�z:?(true|false)r�r�r�z[a-zA-Z][\w-]*(\(.*\))?z\.[\w-]+(\(.*\))?z-(\?)(\s*)([^}\s]+)(\s*)(:)(\s*)([^}\s]+)(\s*)r�r�r�)r�r4r�N)r�r�r�r�r�r rrrtrrrr�rrZBooleanr�r�rr�rxrhrhrhrira�sJ
�����
�����racs,eZdZdZdgZdgZ�fdd�Z�ZS)rbzHTML + Angular2zhtml+ng2z*.ng2cst�jttfi|��dSr�)r�rerrar�r�rhrire�szAngular2HtmlLexer.__init__)r�r�r�r�r�r�rer�rhrhr�rirb�srb)sr�Zpygments.lexers.htmlrrZpygments.lexers.javascriptrrZpygments.lexers.cssrZpygments.lexers.phprZpygments.lexers.pythonrZpygments.lexers.perlr	Zpygments.lexers.jvmr
rZpygments.lexers.datarZpygments.lexerr
rrrrrrrrZpygments.tokenrrrrrrrrrrr r!Z
pygments.utilr"r#�__all__r(r-rRrSrTr2r<r=r>r@r?rArBrCrDrErFr�rHrIrJrKr9r�r8r7r;r:r)r*r+r,r$r%r&r'r.r/r0r1r3r5r4r6r�rGrLrMrNrOrrPrQrUrrVrWrXrYrZr[r\r]r^r_r`rarbrhrhrhri�<module>s�,8_8RS08D
,#@90.
LOS@

Youez - 2016 - github.com/yon3zu
LinuXploit