3
.ßL]Ú  ã               @   sf   d Z ddl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gZG dd„ deƒZdS )zÌ
    pygments.lexers.clean
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for the Clean language.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )ÚExtendedRegexLexerÚwordsÚincludeÚbygroups)
ÚCommentÚErrorÚKeywordÚLiteralÚNameÚNumberÚOperatorÚPunctuationÚStringÚ
WhitespaceÚ
CleanLexerc               @   sŠ  e Zd ZdZdZdgZddgZdnZdoZdZ	d Z
d!Zd"e
 Zd"e	 Zd#Zd$je	e
egƒZed%ƒed&ƒed'ƒed(ƒed)ƒed*ƒed+ƒed,ƒed-ƒg	d.efgd/ejfd0ejd1fd2ejd1fgd3ejd4fd0ejd5fd6ejfd7ejfd8ejfgeed9d9d:�efgeed9d9d:�ejfd;ejd<fged)ƒeejd4fgd=eeeƒd>fd?e d@ eeeejeeƒdAfgdBeeeƒfdCeeeƒdpfeejfdEeeeeƒfdFed4fged)ƒe	ejd4fe
ejd4fgdGe dH eeeejƒdIfdJe dK eeeejeƒdLfdMe
 dN eeeejƒdOfdPe	 d$ e
 dN eeeeƒfed-ƒdQeeeƒfdRed4fed)ƒgdSed4fdTedUfdRedVfed)ƒgdSefdWefdXed4fed-ƒgdYed4fdTedLfdRedVfed)ƒed-ƒgdSed4fdZed[fdRedVfed)ƒgdSefdWefd\ed4fed-ƒgd]ejfd^e j!fd_e j"fd`e j#fdae j$fdbefdce%j&ddfgdee%j&fdce%j&d4fdfe%j&fdge'd4fgdhe(fdie(fgdjefdkeeejeƒfge	efeefeej)fe
ejfeejfgdlœZ*dmS )qr   z«
    Lexer for the general purpose, state-of-the-art, pure and lazy functional
    programming language Clean (http://clean.cs.ru.nl/Clean).

    .. versionadded: 2.2
    ZCleanÚcleanz*.iclz*.dclÚcaseÚccallÚclassÚcodeúcode inlineÚderiveÚexportÚforeignÚgenericÚifÚinÚinfixÚinfixlÚinfixrÚinstanceÚletÚofÚ	otherwiseÚspecialÚstdcallÚwhereÚwithÚimplementationÚ
definitionÚsystemz[a-z`][\w\d`]*z[A-Z`][\w\d`]*z[~@#\$%\^?!+\-*<>\\/|&=:]+Ú_z[a-zA-Z_][a-zA-Z0-9_.`]+ú|ÚcommentsÚkeywordsÚmoduleÚimportÚ
whitespaceÚliteralsÚ	operatorsÚ
delimitersÚnamesz\s+z//.*\nz/\*zcomments.inz/\*\*z\*\/ú#popz#pushz[^*/]+z\*(?!/)ú/z\b)ÚprefixÚsuffixz
\bmodule\bzmodule.namez\b(import)\b(\s*)zimport.modulez\b(from)\b(\s*)\b(z)\b(\s*)\b(import)\bzimport.whatz\b(qualified)\b(\s*)z(\s*)\b(as)\búimport.module.asz(\s*)(,)(\s*)z\s*z\b(class)\b(\s+)(ú)zimport.what.classz\b(instance)(\s+)(z)(\s+)zimport.what.instancez(::)(\s*)\b(z)\bzimport.what.typez\b(generic)\b(\s+)\b(z(,)(\s+)ú$ú,z\(zimport.what.class.membersz#pop:2z\.\.z\)z[,)]z[({]z import.what.type.consesandfieldsz[)}]z$\'([^\'\\]|\\(x[\da-fA-F]+|\d+|.))\'z[+~-]?0[0-7]+\bz[+~-]?\d+\.\d+(E[+-]?\d+)?z[+~-]?\d+\bz[+~-]?0x[\da-fA-F]+\bz
True|Falseú"zliterals.stringdz	[^\\"\n]+z\\.z[$\n]z[-~@#\$%\^?!+*<>\\/|&=:\.]+z\b_+\bz[,;(){}\[\]]z(\')([\w`.]+)(\'))Úrootr1   r-   zcomments.inr.   r/   zmodule.namer0   zimport.modulezimport.module.aszimport.whatzimport.what.classzimport.what.class.memberszimport.what.instancezimport.what.typez import.what.type.consesandfieldsr2   zliterals.stringdr3   r4   r5   N)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*   )r6   r:   )+Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesr.   ZmodulewordsZlowerIdZupperIdZfunnyIdZscoreUpperIdZscoreLowerIdZmoduleIdÚjoinZclassIdr   r   r   ÚSingleZMultiÚSpecialr   r   Ú	Namespacer
   ZClassr   r   r	   ÚCharr   ÚOctZFloatZIntegerZHexr   ÚDoubler   r   ZFunctionÚtokens© rO   rO   ú;/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/clean.pyr      sÒ      











N)rC   Zpygments.lexerr   r   r   r   Zpygments.tokenr   r   r   r	   r
   r   r   r   r   r   Ú__all__r   rO   rO   rO   rP   Ú<module>
   s   0