3
.ßL];‚  ã               @   sH  d Z ddl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mZmZmZmZmZmZmZmZmZ ddddd	d
d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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!G dd„ deƒZ"G dd„ deƒZ#dS )zÚ
    pygments.lexers.dsls
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for various domain-specific languages.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)	ÚExtendedRegexLexerÚ
RegexLexerÚbygroupsÚwordsÚincludeÚdefaultÚthisÚusingÚcombined)
ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚLiteralÚ
WhitespaceÚProtoBufLexerÚBroLexerÚPuppetLexerÚRslLexerÚMscgenLexerÚVGLLexerÚ
AlloyLexerÚPanLexerÚ
CrmshLexerÚThriftLexerÚFlatlineLexerÚSnowballLexerc               @   s*  e Zd ZdZdZddgZdgZdefdefde	j
fd	e	jfed@ddd�efedAdd)�ejfd*ejfd+eejeƒd,fd-eejeƒd.fd/eejeƒd0fd1efd2efd3ejfd4ejfd5ejfd6ejfd7ejfd8ejfd9efd:eejeeƒfd;efgd<ejd=fed=ƒgd<ejd=fed=ƒgd<ed=fed=ƒgd>œZd?S )Br   z|
    Lexer for `Protocol Buffer <http://code.google.com/p/protobuf/>`_
    definition files.

    .. versionadded:: 1.4
    zProtocol BufferZprotobufÚprotoz*.protoz[ \t]+z[,;{}\[\]()<>]z/(\\\n)?/(\n|(.|\n)*?[^\\]\n)z/(\\\n)?\*(.|\n)*?\*(\\\n)?/ÚimportÚoptionÚoptionalÚrequiredÚrepeatedr   ÚpackedÚctypeÚ
extensionsÚtoÚmaxÚrpcÚreturnsÚoneofz\b)ÚprefixÚsuffixÚint32Úint64Úuint32Úuint64Úsint32Úsint64Úfixed32Úfixed64Úsfixed32Úsfixed64ÚfloatÚdoubleÚboolÚstringÚbytes)r0   z(true|false)\bz(package)(\s+)Úpackagez(message|extend)(\s+)Úmessagez(enum|group|service)(\s+)Útypez\".*?\"z\'.*?\'z'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*z(\d+\.\d*|\.\d+|\d+[fF])[fF]?z(\-?(inf|nan))\bz0x[0-9a-fA-F]+[LlUu]*z0[0-7]+[LlUu]*z
\d+[LlUu]*z[+-=]z([a-zA-Z_][\w.]*)([ \t]*)(=)z[a-zA-Z_][\w.]*z[a-zA-Z_]\w*z#pop)Úrootr@   rA   rB   N)r"   r#   r$   r%   r&   r   r'   r(   r)   r*   r+   r,   r-   r.   )r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesr   r   r   ÚSingleÚ	Multiliner   r   ÚTypeÚConstantr   Ú	NamespaceÚDeclarationr   r   ÚFloatÚHexÚOctÚIntegerr   r   Ú	Attributer   ÚClassÚtokens© rX   rX   ú:/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/dsls.pyr      sT     
  

c            s   @   s”  e Zd ZdZdZdgZdgZdgZedƒedƒde	j
ed	d
ƒfde	jed	dƒfdeejejƒdfdeejejƒdfdeeeƒejeeƒfedƒedƒdefdefdefgdejfdejfgdefdefdejfgde	jfgde	j
dfde	j
fgde	jdfd e	jfgd!ejdfedƒgd"ejdfedƒgd#efd$ejfd%ejfed³d9d:�ejfed´d9d:�ej fedµd9d9d­�ej!fgd®e"j#fd¯e"j$fd°e"j%fgd±œ
Z&d²S )¶r   zg
    For `Thrift <https://thrift.apache.org/>`__ interface definitions.

    .. versionadded:: 2.1
    ZThriftZthriftz*.thriftzapplication/x-thriftÚ
whitespaceÚcommentsú"ÚstringescapeÚdqsz\'Úsqsz(namespace)(\s+)Ú	namespacez*(enum|union|struct|service|exception)(\s+)ÚclasszE((?:(?:[^\W\d]|\$)[\w.\[\]$<>]*\s+)+?)((?:[^\W\d]|\$)[\w$]*)(\s*)(\()ÚkeywordsÚnumbersz[&=]z[:;,{}()<>\[\]]z[a-zA-Z_](\.\w|\w)*z\nz\s+z#.*$z//.*?\nz/\*[\w\W]*?\*/z\\([\\nrt"\'])z#popz	[^\\"\n]+ú'z
[^\\\'\n]+z[a-z*](\.\w|\w)*z[a-zA-Z_]\w*z1(async|oneway|extends|throws|required|optional)\bz(true|false)\bz(const|typedef)\bÚcpp_namespaceÚcpp_includeÚcpp_typeÚjava_packageÚcocoa_prefixÚcsharp_namespaceÚdelphi_namespaceÚphp_namespaceÚ	py_moduleÚperl_packageÚruby_namespaceÚsmalltalk_categoryÚsmalltalk_prefixÚxsd_allÚxsd_optionalÚxsd_nillableÚxsd_namespaceÚ	xsd_attrsr   z\b)r0   Úvoidr=   ÚbyteÚi16Úi32Úi64r<   r>   ÚbinaryÚmapÚlistÚsetÚslistÚsenumÚBEGINÚENDÚ	__CLASS__Ú__DIR__Ú__FILE__Ú__FUNCTION__Ú__LINE__Ú
__METHOD__Ú__NAMESPACE__ÚabstractÚaliasÚandÚargsÚasÚassertÚbeginÚbreakÚcaseÚcatchÚcloneÚcontinueÚdeclareÚdefr   ÚdelÚdeleteÚdoÚdynamicÚelifÚelseÚelseifÚelsifÚendÚ
enddeclareÚendforÚ
endforeachÚendifÚ	endswitchÚendwhileÚensureÚexceptÚexecÚfinallyr;   ÚforÚforeachÚfunctionÚglobalÚgotoÚifÚ
implementsr"   ÚinÚinlineÚ
instanceofÚ	interfaceÚisÚlambdaÚmoduleÚnativeÚnewÚnextÚnilÚnotÚorÚpassÚpublicÚprintÚprivateÚ	protectedÚraiseÚredoÚrescueÚretryÚregisterÚreturnÚselfÚsizeofÚstaticÚsuperÚswitchÚsynchronizedÚthenr   ÚthrowÚ	transientÚtryÚundefÚunlessÚunsignedÚuntilÚuseÚvarÚvirtualÚvolatileÚwhenÚwhileÚwithÚxorÚyield)r/   r0   z1[+-]?(\d+\.\d+([eE][+-]?\d+)?|\.?\d+[eE][+-]?\d+)z[+-]?0x[0-9A-Fa-f]+z[+-]?[0-9]+)
rC   rZ   r[   r]   r^   r_   r`   ra   rb   rc   N)re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   r   )rw   r=   rx   ry   rz   r{   r<   r>   r|   r}   r~   r   r€   r�   )er‚   rƒ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   ra   r•   r–   r—   r˜   r   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r;   r¬   r­   r®   r¯   r°   r±   r²   r"   r³   r´   rµ   r¶   r·   r¸   r¹   rº   r»   r¼   r½   r¾   r¿   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rÎ   rÏ   rÐ   rÑ   r   rÒ   rÓ   rÔ   rÕ   rÖ   r×   rØ   rÙ   rÚ   rÛ   rÜ   rÝ   rÞ   rß   rà   rá   )'rD   rE   rF   rG   rH   rI   rJ   Ú	mimetypesr   r   ÚDoubler
   rK   r   r   rO   r   r   rP   r	   r   r   ÚFunctionr   r   r   rL   ÚEscaper   rV   rN   r   rM   ÚReservedr   rQ   rR   rT   rW   rX   rX   rX   rY   r   V   s’   








                       c               @   s¢  e Zd ZdZdZdgZdgZdZdZdZ	de
jfd	e
jfd
efdefdefdefdejfdejfdeeeƒfdejfdefdefde d e efde d e d e d efde d e d efdefe	d e	 d efed ejfde ejfeejfd ejfd!ejd"fd#ed$fd%efd&efd'ejfd(efd)eeejƒfd*efgd#ed+fd,ejfd-efdefd.efgd!ejd+fd/ejfd0ejfdejfd.ejfgd1œZ d2S )3r   zN
    For `Bro <http://bro-ids.org/>`_ scripts.

    .. versionadded:: 1.5
    ZBroZbroz*.broz[0-9a-fA-F_]z(((\d*\.?\d+)|(\d+\.?\d*))([eE][-+]?\d+)?z[A-Za-z0-9][-A-Za-z0-9]*z^@.*?\nz#.*?\nz\nz\s+z\\\nz¬(add|alarm|break|case|const|continue|delete|do|else|enum|event|export|for|function|if|global|hook|local|module|next|of|print|redef|return|schedule|switch|type|when|while)\bzz(addr|any|bool|count|counter|double|file|int|interval|net|pattern|port|record|set|string|subnet|table|time|timer|vector)\bz(T|F)\bzÎ(&)((?:add|delete|expire)_func|attr|(?:create|read|write)_expire|default|disable_print_hook|raw_output|encrypt|group|log|mergeable|optional|persistent|priority|redef|rotate_(?:interval|size)|synchronized)\bz\s+module\bz\d+/(tcp|udp|icmp|unknown)\bz(\d+\.){3}\d+ú(z){7}Ú0xz|:)*::(z|:)*z	((\d+|:)(z	|:)*)?::(z(\d+\.\d+\.|(\d+\.){2}\d+)z(\.z)+z!\s+(day|hr|min|sec|msec|usec)s?\bz0[xX]z\d+ú/Úregexr\   r>   z[!%*/+:<=>?~|-]z([-+=&|]{2}|[+=!><-]=)z(in|match)\bz[{}()\[\]$.,;]z([_a-zA-Z]\w*)(::)z[a-zA-Z_]\w*z#popz/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\z	\\[\\nt/]z	[^\\/\n]+)rC   r>   rê   N)!rD   rE   rF   rG   rH   rI   rJ   Z_hexZ_floatZ_hr   ZPreprocrK   r   r   rM   rN   r   r   rO   r   r   r   ÚDaterR   rQ   rT   ÚRegexr   ÚWordr   rå   rW   rX   rX   rX   rY   r   ¿   sb   


c            s   @   sð   e Zd ZdZdZdgZdgZedƒedƒedƒedƒed	ƒed
ƒdefde	fgde
fde
jfgdefdejfgdejfdeejeeeƒfdejfgdejfdejfdejfdejfdejjfdejfgedŽd‡dˆd‰�efgdŠefd‹efgdŒœZd�S )�r   z_
    For `Puppet <http://puppetlabs.com/>`__ configuration DSL.

    .. versionadded:: 1.6
    ZPuppetZpuppetz*.ppr[   rb   Únamesrc   Ú	operatorsÚstringsz[]{}:(),;[]z[^\S\n]+z\s*#.*$z/(\\\n)?[*](.|\n)*?[*](\\\n)?/z(=>|\?|<|>|=|\+|-|/|\*|~|!|\|)z(in|and|or|not)\bz[a-zA-Z_]\w*z(\$\S+)(\[)(\S+)(\])z\$\S+z'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z	0[0-7]+j?z0[xX][a-fA-F0-9]+z\d+Lz\d+j?ÚabsentÚalertrŒ   ÚauditÚaugeasÚbeforer“   Úcheckra   ÚcomputerÚ
configuredÚ	containedÚcreate_resourcesÚcritÚcronÚdebugr   ÚdefineÚdefinedÚ	directoryrž   r    ÚemergÚerrrª   Ú	extlookupÚfailÚfalseÚfileÚ
filebucketÚ	fqdn_randÚgenerateÚhostr±   r"   r   ÚinfoÚinheritsÚinline_templateÚ	installedr¶   Úk5loginÚlatestÚlinkÚloglevelÚmacauthorizationÚ	mailaliasÚmaillistÚmcxÚmd5ÚmountÚmountedÚnagios_commandÚnagios_contactÚnagios_contactgroupÚnagios_hostÚnagios_hostdependencyÚnagios_hostescalationÚnagios_hostextinfoÚnagios_hostgroupÚnagios_serviceÚnagios_servicedependencyÚnagios_serviceescalationÚnagios_serviceextinfoÚnagios_servicegroupÚnagios_timeperiodÚnodeÚnoopÚnoticeÚnotifyr@   ÚpresentÚpurgedÚrealizeÚregsubstÚ	resourcesÚroleÚrouterÚrunningÚscheduleÚscheduled_taskÚsearchÚ
selbooleanÚ	selmoduleÚserviceÚsha1Ú
shellquoteÚsplitÚsprintfÚssh_authorized_keyÚsshkeyÚstageÚstoppedÚ	subscribeÚtagÚtaggedÚtemplateÚtidyÚtruerÕ   Ú	unmountedÚuserÚ
versioncmpÚvlanÚwarningÚyumrepoÚzfsÚzoneÚzpoolz(?i)z\b)r/   r0   z	"([^"])*"z'(\\'|[^'])*')rC   r[   rï   rî   rc   rb   rð   N)mrñ   rò   rŒ   ró   rô   rõ   r“   rö   ra   r÷   rø   rù   rú   rû   rü   rý   r   rþ   rÿ   r   rž   r    r  r  rª   r  r  r  r  r  r  r	  r
  r±   r"   r   r  r  r  r  r¶   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r!  r"  r#  r$  r%  r&  r'  r(  r)  r*  r+  r@   r,  r-  r.  r/  r0  r1  r2  r3  r4  r5  r6  r7  r8  r9  r:  r;  r<  r=  r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rÕ   rH  rI  rJ  rK  rL  rM  rN  rO  rP  )rD   rE   rF   rG   rH   rI   rJ   r   r   r   r   rL   r   rí   r   rU   r   ÚVariabler   r   rQ   rS   rR   rT   ZLongr   r   rW   rX   rX   rX   rY   r     sh   





                     
c            L   @   sÎ   e Zd ZdZdZdgZdgZdgZej	ej
B ZdedfdQdQdR�efdSejfdTefdUefdVefdWefdXejfdYeeejeeƒfdZejfd[ejfd\efd]ejfd^efd_ejfd`ejfdaejfdbefgiZdcdd„ ZdeS )gr   zÊ
    `RSL <http://en.wikipedia.org/wiki/RAISE>`_ is the formal specification
    language used in RAISE (Rigorous Approach to Industrial Software Engineering)
    method.

    .. versionadded:: 2.0
    ZRSLZrslz*.rslztext/rslrC   ÚBoolÚCharÚIntÚNatÚRealr   ÚUnitÚabsÚallÚalwaysÚanyr�   ÚaxiomÚcardr“   ÚchannelÚchaosra   Údevt_relationÚdomÚelemsrž   r�   r¡   ÚexistsÚextendr  r¬   ÚhdÚhider±   r³   r·   ÚindsÚ
initialiseÚintÚinterÚisinÚlenÚletÚlocalÚltl_assertionÚobjectÚofÚoutÚpostÚpreÚreadÚrealÚrngÚschemeÚskipÚstopÚswaprÑ   ÚtheoryÚ	test_caseÚtlÚtransition_systemrG  rB   ÚunionrØ   rÙ   ÚvalueÚvariablerÞ   rß   Úwriteú~isinú-inflistú-infsetú-listú-setz\b)r/   r0   z(variable|value)\bz--.*?\nz<:.*?:>z	\{!.*?!\}z	/\*.*?\*/z^[ \t]*([\w]+)[ \t]*:[^:]z1(^[ \t]*)([\w]+)([ \t]*\([\w\s,]*\)[ \t]*)(is|as)z\b[A-Z]\w*\bz(true|false)\bz".*"z\'.\'zq(><|->|-m->|/\\|<=|<<=|<\.|\|\||\|\^\||-~->|-~m->|\\/|>=|>>|\.>|\+\+|-\\|<->|=>|:-|~=|\*\*|<<|>>=|\+>|!!|\|=\||#)z [0-9]+\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-f]+z[0-9]+Ú.c             C   s   t jd| t jƒdk	rdS dS )zP
        Check for the most common text in the beginning of a RSL file.
        zscheme\s*.*?=\s*class\s*typeNg      ð?)Úrer6  ÚI)ÚtextrX   rX   rY   Úanalyse_text˜  s    zRslLexer.analyse_textN)JrR  rS  rT  rU  rV  r   rW  rX  rY  rZ  r[  r�   r\  r]  r“   r^  r_  ra   r`  ra  rb  rž   r�   r¡   rc  rd  r  r¬   re  rf  r±   r³   r·   rg  rh  ri  rj  rk  rl  rm  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  rz  r{  rÑ   r|  r}  r~  r  rG  rB   r€  rØ   rÙ   r�  r‚  rÞ   rß   rƒ  r„  r…  r†  r‡  rˆ  )rD   rE   rF   rG   rH   rI   rJ   râ   rŠ  Ú	MULTILINEÚDOTALLÚflagsr   r   rP   r   r   rä   r   r   rM   rN   r   rS  r   r   rQ   rR   rT   rW   r�  rX   rX   rX   rY   r   d  sN             
c               @   sÆ   e Zd ZdZdZddgZdgZdZdej	fde
jfd	ejfd
efdefde
jfee
jfdedfdefedƒg
dedfed e ee
jejeejeƒfdefedƒgdejfdejfdejfgdœZdS )r   z]
    For `Mscgen <http://www.mcternan.me.uk/mscgen/>`_ files.

    .. versionadded:: 1.6
    ZMscgenZmscgenZmscz*.mscz(\w+|"(?:\\"|[^"])*")zmsc\bzO(hscale|HSCALE|width|WIDTH|wordwraparcs|WORDWRAPARCS|arcgradient|ARCGRADIENT)\bz)(abox|ABOX|rbox|RBOX|box|BOX|note|NOTE)\bz(\.|-|\|){3}zT(?:-|=|\.|:){2}|<<=>>|<->|<=>|<<>>|<:>|->|=>>|>>|=>|:>|-x|-X|<-|<<=|<<|<=|<:|x-|X-|=z\*z\[Úattrsz	\{|\}|,|;r[   z\]z#popz(\s*)(=)(\s*)ú,z(?://|#).*?\nz/\*(?:.|\n)*?\*/z
[ \t\r\n]+)rC   r‘  r[   N)rD   rE   rF   rG   rH   rI   rJ   Z_varr   rM   r   ZPropertyr   rí   ÚBuiltinrQ  r   r   r   rU   r   r   r   r   rK   rL   rW   rX   rX   rX   rY   r      s4   
c               @   sŠ   e Zd ZdZdZdgZdgZejej	B ej
B Zddejfdejfdefd	ejfd
efdefdeeejƒfdefdefdefdefgiZdS )r   z~
    For `SampleManager VGL <http://www.thermoscientific.com/samplemanager>`_
    source code.

    .. versionadded:: 1.6
    ZVGLZvglz*.rpfrC   z	\{[^}]*\}r—   zî(if|then|else|endif|while|do|endwhile|and|or|prompt|object|create|on|line|with|global|routine|value|endroutine|constant|global|set|join|library|compile_option|file|exists|create|copy|delete|enable|windows|name|notprotected)(?! *[=<>.,()])z$(true|false|null|empty|error|locked)z[~^*#!%&\[\]()<>|+=:;,./?-]z"[^"]*"z(\.)([a-z_$][\w$]*)z&[0-9][0-9]*(\.[0-9]+(e[+\-]?[0-9]+)?)?z[a-z_$][\w$]*z[\r\n]+z\s+N)rD   rE   rF   rG   rH   rI   rJ   rŠ  rŽ  r�  Ú
IGNORECASEr�  r   rL   r   rN   r   r   r   r   rU   r   r   rW   rX   rX   rX   rY   r   Ñ  s$   c               @   s$  e Zd ZdZdZdgZdgZdgZej	ej
B ZdZdefZded	feefed
efded	fgeeed	fgeded	feed	fgdejfdejfdejfedeejeƒdfdeejeƒdfdejfdejfdefdefdefdejfdeeeƒdfdefdefeefdefdejfdefd efgd!œZd"S )#r   zU
    For `Alloy <http://alloy.mit.edu>`_ source code.

    .. versionadded:: 2.0
    ZAlloyZalloyz*.alsztext/x-alloyz[a-zA-Z_][\w\']*z[^\S\n]+z(extends)\bz#popr’  z\{z--.*?$z//.*?$z	/\*.*?\*/z(module|open)(\s+)r¹   z(sig|enum)(\s+)Úsigz(iden|univ|none)\bz(int|Int)\bz.(this|abstract|extends|set|seq|one|lone|let)\bz"(all|some|no|sum|disj|when|else)\bz'(run|check|for|but|exactly|expect|as)\bz(and|or|implies|iff|in)\bz(fun|pred|fact|assert)(\s+)Úfunz!!|#|&&|\+\+|<<|>>|>=|<=>|<=|\.|->z[-+/*%=<>&!^|~{}\[\]().]z[:,]z[0-9]+z"(\\\\|\\"|[^"])*"z\n)r•  r¹   r–  rC   N) rD   rE   rF   rG   rH   rI   rJ   râ   rŠ  rŽ  r�  r�  Ziden_rexr   Z
text_tupler   r   r   r   r   rK   rL   r   rO   rP   rN   rM   rí   r   rT   r   rW   rX   rX   rX   rY   r   ó  sN   


c            7   @   sö   e Zd ZdZdZdgZdgZedƒdedfded	fed
ƒge	dkdd d!�efe	dldd d!�e
jfdVefdWejfdXee
jeeƒfdYefdZefd[efgd\ejfd]ejfd^efd_efd`efgdaedbfdcefdde
jfdeefdfefedgƒgdhedbfedgƒgdiœZdjS )mr   z~
    Lexer for `pan <http://github.com/quattor/pan/>`_ source files.

    Based on tcsh lexer.

    .. versionadded:: 2.0
    ZPanZpanz*.panÚbasicz\(Úparenz\{ÚcurlyÚdatar±   r¬   rß   rž   rB   ÚbindrÞ   ÚvalidÚfinalr/   Úuniquerp  r­   r   rE  r®   r‚  Ú	structureÚ
extensibleÚdeclarationz\bz\s*\b)r/   r0   Úfile_contentsÚformatÚindexÚlengthÚmatchÚmatchesÚreplaceÚsplicer<  ÚsubstrÚto_lowercaseÚto_uppercaserý   ÚerrorÚ	tracebackÚ
deprecatedÚbase64_decodeÚbase64_encodeÚdigestÚescapeÚunescapeÚappendÚcreateÚfirstÚnlistÚkeyr~   Úmerger¼   ÚprependÚ
is_booleanÚ
is_definedÚ	is_doubleÚis_listÚis_longÚis_nlistÚis_nullÚ	is_numberÚis_propertyÚis_resourceÚ	is_stringÚ
to_booleanÚ	to_doubleÚto_longÚ	to_stringr•   rš   rc  Úpath_existsÚ	if_existsrÊ   r�  z#.*z\\[\w\W]z(\b\w+)(\s*)(=)z[\[\]{}()=]+z<<\s*(\'?)\\?(\w+)[\w\W]+?\2ú;z!(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"z!(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'z\s+z[^=\s\[\]{}()$"\'`\\;#]+z\d+(?= |\Z)z\}z#popz:-z\w+z[^}:"\'`$]+ú:rC   z\))rC   r—  rš  r™  r˜  N)r±   r¬   rß   rž   rB   r›  rÞ   rœ  r�  r/   rž  rp  r­   r   rE  r®   r‚  rŸ  r   r¡  )4r¢  r£  r¤  r¥  r¦  r§  r¨  r©  r<  rª  r«  r¬  rý   r­  r®  r¯  r°  r±  r²  r³  r´  rµ  r¶  r·  r¸  r¹  r~   rº  r¼   r»  r¼  r½  r¾  r¿  rÀ  rÁ  rÂ  rÃ  rÄ  rÅ  rÆ  rÇ  rÈ  rÉ  rÊ  r•   rš   rc  rË  rÌ  rÊ   r�  )rD   rE   rF   rG   rH   rI   rJ   r   r   r   r   r“  r   r   rå   r   rQ  r   r   r   rã   rK   r   rW   rX   rX   rX   rY   r   /  sZ             c               @   s(  e Zd ZdZdZddgZddgZg Zed>dd�Z	ed?dd�Z
ed@dd�ZedAdd�ZedBdd�ZedCdd�Zd.Zd/Zd0Zd1Zd2d3efd4eejeeƒfd5eeeeeƒfd6efe	efe
efeefd7eef ejfeejfeejfeejfd8ejfd9e eeeeƒfd:e eeeejƒfd;efd<efgiZd=S )Dr   z�
    Lexer for `crmsh <http://crmsh.github.io/>`_ configuration files
    for Pacemaker clusters.

    .. versionadded:: 2.1
    ZCrmshZcrmshZpcmkz*.crmshz*.pcmkr(  Ú	primitiveÚgroupr•   ÚmsÚlocationÚ
colocationÚorderÚfencing_topologyÚ
rsc_ticketÚrsc_templateÚpropertyÚrsc_defaultsÚop_defaultsÚ
acl_targetÚ	acl_grouprI  r1  rC  z(?![\w#$-]))r0   ÚparamsÚmetaÚ
operationsÚopÚruleÚ
attributesÚutilizationru  rƒ  Údenyr�   r¿   rÿ   Únot_definedÚin_rangeÚdateÚspecr³   z*(?:tag|ref|reference|attribute|type|xpath)z(?:lt|gt|lte|gte|eq|ne)z(?:string|version|number)z:(?:Master|Started|Slave|Stopped|start|promote|demote|stop)rC   z^#.*\n?z!([\w#$-]+)(=)("(?:""|[^"])*"|\S+)z(node)(\s+)([\w#$-]+)(:)z([+-]?([0-9]+|inf)):z(?:%s:)?(%s)(?![\w#$-])z#[a-z]+(?![\w#$-])z(%s)(:)("(?:""|[^"])*"|\S+)z!([\w#$-]+)(?:(:)(%s))?(?![\w#$-])z(\\(?=\n)|[\[\](){}/:@])z\s+|\nN)r(  rÏ  rÐ  r•   rÑ  rÒ  rÓ  rÔ  rÕ  rÖ  r×  rØ  rÙ  rÚ  rÛ  rÜ  rI  r1  rC  )rÝ  rÞ  rß  rà  rá  râ  rã  )ru  rƒ  rä  )r�   r¿   )rÿ   rå  )ræ  rç  rè  r³   ) rD   rE   rF   rG   rH   rI   rJ   râ   r   ÚelemÚsubZaclZbin_relZun_opsZdate_expZacl_modZbin_opsZval_qualZrsc_role_actionr   r   r   rU   r   r   r   r   r   r   rí   r“  rW   rX   rX   rX   rY   r   s  sV       
 
c            †   @   s¤   e Zd ZdZdZdgZg ZdgZdšZd›Z	dŒZ
d�dŽefd�ejfd�ejfd‘ejfd’efd“ejfd”ejfeed•d–�efee	d•d–�ejfd—e
 ejfe
ejfd˜efgiZd™S )œr   zn
    Lexer for `Flatline <https://github.com/bigmlcom/flatline>`_ expressions.

    .. versionadded:: 2.2
    ZFlatlineZflatlineztext/x-flatlinerm  ú!=Ú*ú+ú-ú<ú<=ú=ú>ú>=rX  ÚacosrY  úall-butúall-with-defaultsúall-with-numeric-defaultr�   ÚasinÚatanÚavgú
avg-windowú
bin-centerú	bin-countÚcallúcategory-countÚceilÚcondúcond-windowÚconsÚcosÚcoshÚcountúdiff-windowÚdivúensure-valueúensure-weighted-valueÚepochú	epoch-dayúepoch-fieldsú
epoch-hourúepoch-millisecondúepoch-minuteúepoch-monthúepoch-secondúepoch-weekdayú
epoch-yearÚexpÚfÚfieldú
field-propÚfieldsÚfilterr·  ÚfloorÚheadr±   r³   ÚintegerÚlanguager¥  Úlevenshteinúlinear-regressionr~   ÚlnÚlogÚlog10r}   r§  úmatches?r+   Úmaximumr  ÚmeanÚmedianÚminÚminimumÚmissingúmissing-countúmissing?Úmissing_countÚmodÚmodeÚ	normalizer¾   ÚnthÚoccurrencesr¿   Ú
percentileúpercentile-labelÚ
populationúpopulation-fractionÚpowÚ	preferredú
preferred?úquantile-labelÚrandúrand-intúrandom-valueúre-quoterv  r¨  úreplace-firstÚrestÚroundú
row-numberúsegment-labelr:  Úsha256ÚsinÚsinhÚsqrtÚsquareústandard-deviationÚstandard_deviationÚstrÚsubsÚsumúsum-squaresú
sum-windowÚsum_squaresÚsummaryú
summary-noúsummary-strÚtailÚtanÚtanhú
to-degreesú
to-radiansÚvarianceÚ	vectorizeúweighted-random-valueÚwindowÚwinnowúwithin-percentiles?úz-scorez(?!#)[\w!$%*+<=>?/.#-]+rC   z[,\s]+z
-?\d+\.\d+z-?\d+z0x-?[a-f\d]+z"(\\\\|\\"|[^"])*"z\\(.|[a-z]+)Ú_ú )r0   z(?<=\()z(\(|\))N)rm  )†rë  rì  rí  rî  rï  rð  rñ  rò  ró  rX  rô  rY  rõ  rö  r÷  r�   rø  rù  rú  rû  rü  rý  rþ  rÿ  r   r  r  r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r·  r  r  r±   r³   r  r  r¥  r  r   r~   r!  r"  r#  r}   r§  r$  r+   r%  r  r&  r'  r(  r)  r*  r+  r,  r-  r.  r/  r0  r¾   r1  r2  r¿   r3  r4  r5  r6  r7  r8  r9  r:  r;  r<  r=  r>  rv  r¨  r?  r@  rA  rB  rC  r:  rD  rE  rF  rG  rH  rI  rJ  rK  rL  rM  rN  rO  rP  rQ  rR  rS  rT  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  )rD   rE   rF   rG   rH   rI   rJ   râ   Zspecial_formsÚbuiltinsZ
valid_namer   r   rQ   rT   rR   r   rS  ZSymbolr   r   r   r“  rä   rQ  r   rW   rX   rX   rX   rY   r   ¹  sT                        c            ,   @   sN  e Zd ZdZdZdgZdgZdZdd„ Zdd	„ Z	d
d„ Z
dd„ Zed[dd�ejfedƒgde efdejfdejdfdefdejfdejfdefed\dd�ejfed]dd�ejd(fed^dd�ejfed_dd�ejfdOeef eejeejƒfdPeef efdQefgdRedSfed`dd�edafedƒgdTe
dUƒfgdTe
dVƒfgdWœZdbdYdZ„ZdXS )cr    zb
    Lexer for `Snowball <http://snowballstem.org/>`_ source code.

    .. versionadded:: 2.2
    ZSnowballZsnowballz*.sblz\n\r\t c             K   s   | j ƒ  tj| f|Ž d S )N)Ú_reset_stringescapesr   Ú__init__)rË   ÚoptionsrX   rX   rY   rd    s    zSnowballLexer.__init__c             C   s   d| _ d| _d S )Nrd   )Ú_startÚ_end)rË   rX   rX   rY   rc    s    z"SnowballLexer._reset_stringescapesc                s   ‡ fdd„}|S )Nc       	      3   sF  |j ƒ }|jƒ }tjdtj| jƒ ƒj}tjdtj| jƒ ƒj}d}ˆ }xê|t|ƒk �r2|râ|||ƒ}||j dƒ t	j
|jdƒfV  |jdƒdkr¼||j dƒ t	j
|jdƒfV  |jjƒ  P ||j dƒ t	j|jdƒfV  |jƒ }|||ƒ}||j ƒ  t	j|jƒ fV  |jdƒ| jk�r$d|jd< P |jƒ }d}qJW ||jƒ  |_d S )	Nz([^%s]*)(.)r   é   é   rd   r³  Téÿÿÿÿ)ÚstartrÐ  rŠ  Úcompiler³  rf  r¦  rg  rl  r   rK   ÚstackÚpoprå   r¡   Úpos)	Úlexerr¦  ÚctxÚsrŒ  r>   r³  ro  Z	do_string)Údo_string_firstrX   rY   Úcallback  s0    



z'SnowballLexer._string.<locals>.callbackrX   )rs  rt  rX   )rs  rY   Ú_string  s    zSnowballLexer._stringc             C   s6   |j dƒ| _|j dƒ| _ttjttjttjƒ| ||ƒS )Né   é   )	rÐ  rf  rg  r   r   ræ   r   r   rå   )rp  r¦  rq  rX   rX   rY   Ú_stringescapes5  s    zSnowballLexer._stringescapesrl  Úlenofz\b)r0   Úroot1z[%s]+z\d+rd   r>   z[()]z/\*[\w\W]*?\*/z//.*z)[!*+\-/<=>]=|[-=]>|<[+-]|[$*+\-/<=>?\[\]]r�   ÚgetÚhexÚamongrþ   ÚdecimalÚbackwardmoderð   ÚbooleansÚintegersÚroutinesÚ	externalsÚ	groupingsr¡  r›   r¿   r�   r¬   ÚhopÚnonr¾   r   rÔ   r  r°   Úloopr¼   ÚtestrG  r  ÚunsetÚatmarkÚattachrš   ÚgopastÚinsertÚrepeatrÌ   ÚtomarkÚatleastÚatlimitÚreverseÚsetmarkÚtolimitÚsetlimitÚ	backwardsÚ	substringÚsizeÚlimitÚcursorÚmaxintÚminintz(stringdef\b)([%s]*)([^%s]+)z%(stringescapes\b)([%s]*)(.)([%s]*)(.)z[A-Za-z]\w*z\)z#popz[^']*'TF)rC   rz  r¡  r>   r³  Nc             C   s   | j ƒ  tj| ||ƒS )N)rc  r   Úget_tokens_unprocessed)rË   rŒ  ÚcontextrX   rX   rY   r�  l  s    z$SnowballLexer.get_tokens_unprocessed)rl  ry  )r�   r{  r|  r}  rþ   r~  r  )rð   r€  r�  r‚  rƒ  r„  )!r›   r¿   r�   r¬   r…  r†  r¾   r   rÔ   r  r°   r‡  r¼   rˆ  rG  r  r‰  rŠ  r‹  rš   rŒ  r�  rŽ  rÌ   r�  r�  r‘  r’  r“  r”  r•  r–  r—  )r˜  r™  rš  r›  rœ  )rl  ry  )rz  r¡  )NN) rD   rE   rF   rG   rH   rI   rJ   Ú_wsrd  rc  ru  rx  r   r   rí   r   r   r   rT   r   rK   r   r   rL   r   ræ   r   r“  r   rå   rW   r�  rX   rX   rX   rY   r      s\   

    

)$rG   rŠ  Zpygments.lexerr   r   r   r   r   r   r   r	   r
   Zpygments.tokenr   r   r   r   r   r   r   r   r   r   Ú__all__r   r   r   r   r   r   r   r   r   r   r   r    rX   rX   rX   rY   Ú<module>
   s$   ,0>iNW<1"<DFK