o
    ‡ÎÖa§%  ã                   @   sj   d 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gZG dd„ deƒZdS )zÌ
    pygments.lexers.felix
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for the Felix language.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚincludeÚbygroupsÚdefaultÚwordsÚcombined)	ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚ
FelixLexerc                "   @   s&  e Zd ZdZdZddgZddgZdgZdZd	Z	d
Z
dZdZdZdZdZdZdZi dedƒeddd�edfeddd�edfdedfee	dd�efee
dd�ejfeedd�ejfeedd�ejfeedd�ejfedƒdejfdejfdejfd e ejfd!e ejfd"e ejfd#e ejfd$e d%fd&e d'fd(e d)fd*e d+fd,e e!d-d%ƒfd.e e!d-d'ƒfd/e e!d-d)ƒfd0e e!d-d+ƒfd1e"fd2ej#fd3d4 $e¡ ej%fd3d4 $e¡ ej%j&fd5efg“dd6e'fed7ƒd8e(e)j*e'e)j*e'e)j*ƒd9fd:e)j*d;fg“dd3d4 $e¡ e+j,fd<e+fg“d7d=e)j-fd>e)j.d?fg“d?d@e)j.fd>e)j.dAfdBe)j.dCfdDe)j.fg“d9dEe(e'e)e'ƒdAfdFe(e'e)e'ƒdCfdGe(e)e'ƒfg“d;ed7ƒdHe(e)j*e'e ƒdCfdIe(e)j*e'e ƒdCfdJe(e)j*e'e ƒdCfdKe)j*fdLe)j*fdMe)j*fdNe'dCfg“dedƒd5ej/dCfdOe0dCfg“dedƒd5ej1dCfdPe0dCfg“dedƒdQe"dRfe2dSƒg“dSedƒdTej3dUfg“dVedƒedƒdQe"dAfdWe"dCfdXe"fdYefd5efg“d-dZe j4fg“d[d\e j5fd]e fd^e fd_e fg“d`dNe fg“d)dae dCfdbe j4fed[ƒg“d+dce dCfdde j4fed[ƒg“dee dCfed[ƒed`ƒgdfe dCfed[ƒed`ƒgdgœ¥Z6dhS )ir   zZ
    For `Felix <http://www.felix-lang.org>`_ source code.

    .. versionadded:: 1.2
    ÚFelixÚfelixÚflxz*.flxz*.flxhztext/x-felix)ÚelifÚelseÚendifÚifÚifdefÚifndef)HÚ_Ú_derefÚallÚasÚassertÚattemptÚcallÚcallbackÚcaseÚcasenoÚcclassÚcodeÚcompoundÚctypesÚdoÚdoneÚdowntor   r   Ú
endattemptÚendcaser   ÚendmatchÚenumÚexceptÚ
exceptionsÚexpectÚfinallyÚforÚforallÚforgetÚforkÚfunctorÚgotoÚidentr   Ú
incompleteÚinheritÚinstanceÚ	interfaceÚjumpÚlambdaÚloopÚmatchÚmoduleÚ	namespaceÚnewÚnoexpandÚnontermÚobjÚofÚopenÚparseÚraiseÚregexpÚreglexÚregmatchÚrenameÚreturnÚtheÚthenÚtoÚtypeÚtypecaseÚtypedefÚ	typematchÚtypeofÚuptoÚwhenÚwhilstÚwithÚyield)Ú_gc_pointerÚ_gc_typeÚbodyÚcommentÚconstÚexportÚheaderÚinlineÚlvalÚmacroÚnoinlineÚnoreturnÚpackageÚprivateÚpodÚpropertyÚpublicÚpublishÚrequiresÚtodoÚvirtualÚuse)ÚdefÚletÚrefÚvalÚvar)7ÚunitÚvoidÚanyÚboolÚbyteÚoffsetÚaddressÚcaddressÚ	cvaddressÚvaddressÚtinyÚshortÚintÚlongÚvlongÚutinyÚushortÚvshortÚuintÚulongÚuvlongÚint8Úint16Úint32Úint64Úuint8Úuint16Úuint32Úuint64ÚfloatÚdoubleÚldoubleÚcomplexÚdcomplexÚlcomplexÚ	imaginaryÚ
dimaginaryÚ
limaginaryÚcharÚwcharÚucharÚcharpÚcharcpÚucharpÚucharcpÚstringÚwstringÚustringÚcontÚarrayÚvarrayÚlistÚlvalueÚoptÚslice)ÚfalseÚtrue)ÚandÚnotÚinÚisÚisinÚorÚxor)Ú_svcÚwhile)ÚrootÚselfÚthisz*([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?r¼   Ú
whitespace)ÚaxiomÚctorÚfunÚgenÚprocÚreduceÚunionz\b)ÚsuffixÚfuncname)Úclassr%   ÚcstructrH   ÚstructÚ	classnamez(instance|module|typeclass)\bÚ
modulenameÚ	operatorszK0[xX]([0-9a-fA-F_]*\.[0-9a-fA-F_]+|[0-9a-fA-F_]+)[pP][+\-]?[0-9_]+[lLfFdD]?zH[0-9_]+(\.[0-9_]+[eE][+\-]?[0-9_]+|\.[0-9_]*|[eE][+\-]?[0-9_]+)[lLfFdD]?z/\.(0|[1-9][0-9_]*)([eE][+\-]?[0-9_]+)?[lLfFdD]?z0[Bb][01_]+%sz
0[0-7_]+%sz0[xX][0-9a-fA-F_]+%sz(0|[1-9][0-9_]*)%sz([rR][cC]?|[cC][rR])"""Útdqsz([rR][cC]?|[cC][rR])'''Útsqsz([rR][cC]?|[cC][rR])"Údqsz([rR][cC]?|[cC][rR])'Úsqsz[cCfFqQwWuU]?"""Ústringescapez[cCfFqQwWuU]?'''z[cCfFqQwWuU]?"z[cCfFqQwWuU]?'z[\[\]{}:(),;?]z[a-zA-Z_]\w*:>z(%s)\bú|z[a-zA-Z_]\w*z\s+rb   z(#)(\s*)(if)(\s+)(0)Úif0ú#rh   z$!=|==|<<|>>|\|\||&&|[-~+/*%=<>&^|.$]z//(.*?)$z/[*]Úcomment2z[^/*]z#pushz[*]/z#popz[/*]z^(\s*)(#if.*?(?<!\\))(\n)z^(\s*)(#endif.*?(?<!\\))(\n)z	(.*?)(\n)z(import|include)(\s+)(<[^>]*?>)z(import|include)(\s+)("[^"]*?")z(import|include)(\s+)('[^']*?')z[^/\n]+ú/z	(?<=\\)\nz\nz(?=\()z(?=\{)z\[)Úmodulename2ÚtvarlistrÙ   z([a-zA-Z_]\w*)z#pop:2rÚ   z\]ú,z(with|where)\bzY\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})ÚstringszP%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]ú%Únlú"z\\\\|\\"|\\\nú'z\\\\|\\'|\\\nz"""z''')rÏ   rÐ   N)7Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚpreprocÚkeywordsÚkeyword_directivesÚkeyword_declarationsÚkeyword_typesÚkeyword_constantsÚoperator_wordsÚname_builtinsÚname_pseudoÚdecimal_suffixesr   r   r   r   Ú	DecoratorÚDeclarationÚTypeÚConstantr   ÚFloatÚBinÚOctÚHexÚIntegerr   r   r   ÚLabelÚjoinÚBuiltinÚPseudor   r   r	   ÚPreprocr
   ÚWordÚSingleÚ	MultilineÚFunctionr   ÚClassr   Ú	NamespaceÚEscapeÚInterpolÚtokens© r
  r
  ú7/usr/lib/python3/dist-packages/pygments/lexers/felix.pyr      sš   ÿþ
ÿÿÿÿÅÿ>ÿþ
÷ÂIþ·M
þ³Q

ü¯Wÿÿû©^ÿÿÿó¢m
ü“s
ü�yý‡~
þ‚ ù �ý ÿÿ �ô ÿù �ð ÿ �æ ü �ã #ü �Ý *ýý �ÒN)rä   Úpygments.lexerr   r   r   r   r   r   Úpygments.tokenr   r	   r
   r   r   r   r   r   r   Ú__all__r   r
  r
  r
  r  Ú<module>   s
     
,