
    Mh%                     x    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e          ZdS )z
    pygments.lexers.felix
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for the Felix language.

    :copyright: Copyright 2006-2025 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            #           e Zd 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dZi d ed           edd          edf edd          edfdedf eed          ef eed          ej        f eed          ej        f eed          ej        f ee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d0e" e#d/d)          fd1e" e#d/d+          fd2e" e#d/d-          fd3e$fd4ej%        fd5&                    d6'                    e                    ej(        fd5&                    d6'                    e                    ej(        j)        fd7efgdd8e*f ed9          d: e+e,j-        e*e,j-        e*e,j-                  d;fd<e,j-        d=fgdd5&                    d6'                    e                    e.j/        fd>e.fgd9d?e,j0        fd@e,j1        dAfgdAdBe,j1        fd@e,j1        dCfdDe,j1        dEfdFe,j1        fgd;dG e+e*e,e*          dCfdH e+e*e,e*          dEfdI e+e,e*          fgd= ed9          dJ e+e,j-        e*e"          dEfdK e+e,j-        e*e"          dEfdL e+e,j-        e*e"          dEfdMe,j-        fdNe,j-        fdOe,j-        fdPe*dEfgd ed          d7ej2        dEfdQe3dEfgd ed          d7ej4        dEfdRe3dEfgd ed          dSe$dTf e5dU          gdU ed          dVej6        dWfgdX ed           ed          dSe$dCfdYe$dEfdZe$fd[efd7efgd/d\e"j7        fgd]d^e"j8        fd_e"fd`e"fdae"fgdbdPe"fgd+dce"dEfdde"j7        f ed]          gd-dee"dEfdfe"j7        f ed]          gdge"dEf ed]           edb          gdhe"dEf ed]           edb          gdiZ9djS )kr   z 
    For Felix source code.
    Felixzhttp://www.felix-lang.orgfelixflxz*.flxz*.flxhztext/x-felixz1.2)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'   cstructrJ   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_]+z0[0-7_]+z0[xX][0-9a-fA-F_]+z(0|[1-9][0-9_]*)z([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({})\b|z[a-zA-Z_]\w*z\s+rd   z(#)(\s*)(if)(\s+)(0)if0#rj   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):__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesversion_added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formatjoinBuiltinPseudor   r   r
   Preprocr   WordSingle	MultilineFunctionr	   Classr   	NamespaceEscapeInterpoltokens     U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/felix.pyr   r      sj         D
%CG(#I IMGHM&NMK DrGL!! U %*, , ,j" UB5QQQk#-wEU8E***G4U%e444dnEU'6668KLU=///>U$U333W5EF GK  +,2L:67=|E?\
 /,..
;+)++VZ85#355vzB3!133V^D '7&7$fe4$fe4.&)I)IJ.&)I)IJvxx'F'FGvxx'F'FG , 
+ chh}5566Echh{3344dl6IJd#w<
r| 	Z GI %*go1 1279 7?G,

}rR 	chh~6677G4h?
SrZ 	'.)g'4
[rb 	w()g'1g'0g'(	
crn 	)Wj997D,Wj996C88GZ889
or| 	GI/Xgoz6::FD/Xgoz6::FD/Xgoz6::FD) 7?#7?+J'
}rZ 	GL!!dmV4f%	
[rf 	GL!!dj&1f%	
grr 	GL!!K!<=GM""
sr| 	GL!!9
}rD 	GL!!GK  K)K(;(d#
ErV 	<=C]L
Wr^ 	&'-8f% 6N	
_rr 	FO
srx 	66"v}-GI	
yrD 	66"v}-GI	
ErR VV$GIGDMM
 VV$GIGDMM
[r r rFFFr  N)r   pygments.lexerr   r   r   r   r   r   pygments.tokenr	   r
   r   r   r   r   r   r   r   __all__r   r  r  r  <module>r     s                  $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ .@ @ @ @ @ @ @ @ @ @r  