
    Mh                     d    d Z ddlmZmZ ddl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.zig
    ~~~~~~~~~~~~~~~~~~~

    Lexers for Zig.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerwords)CommentOperatorKeywordNameStringNumberPunctuation
WhitespaceZigLexerc                      e Zd ZdZdZdZdgZdgZdgZdZ	 e
dd	
          ej        fZ e
dd	
          ej        fZ e
dd	
          efZ e
dd	
          efZ e
dd	
          efZ e
dd	
          efZ e
dd	
          efZ e
dd	
          ej        fZdefdefdej        feeeeeeeedej        fdej        fdej        fdej        fdej        fdej        fdej        fdej        fde j!        fde fde"j#        fd e"j#        fd!e"fd"e"j$        fd#e"j$        fd$e"d%fd&e%fd'e&fgd(e"j#        fd)e"fd*e"d+fgd,Z'd-S ).r   ze
    Lexer for the Zig language.

    grammar: https://ziglang.org/documentation/master/#Grammar
    Zigzhttp://www.ziglang.orgzigz*.zigztext/zig )#boolf16f32f64f128voidnoreturntypeanyerrorpromisei0u0isizeusizecomptime_intcomptime_floatc_shortc_ushortc_intc_uintc_longc_ulong
c_longlongc_ulonglongc_longdoublec_voidi8u8i16u16i32u32i64u64i128u128z\b)suffix)constvarexternpackedexportpubnoaliasinlinecomptimenakedcc	stdcallccvolatile	allowzeroalignlinksectionthreadlocal)structenumunionerror)breakreturncontinueasmdefererrdeferunreachabletrycatchasyncawaitsuspendresumecancel)ifelseswitchandororelse)whilefor)fnusingnamespacetest)truefalsenull	undefinedz\nz\s+z//.*?\nz50x[0-9a-fA-F]+\.[0-9a-fA-F]+([pP][\-+]?[0-9a-fA-F]+)?z'0x[0-9a-fA-F]+\.?[pP][\-+]?[0-9a-fA-F]+z [0-9]+\.[0-9]+([eE][-+]?[0-9]+)?z[0-9]+\.?[eE][-+]?[0-9]+z0b[01]+z0o[0-7]+z0x[0-9a-fA-F]+z[0-9]+z@[a-zA-Z_]\w*z[a-zA-Z_]\w*z\'\\\'\'zB\'\\(x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{6}|[nr\\t\'"])\'z\'[^\\\']\'z
\\\\[^\n]*zc\\\\[^\n]*zc?"stringz[+%=><|^!?/\-*&~:]z[{}()\[\],.;]z>\\(x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{6}|[nr\\t\'"])z	[^\\"\n]+"z#pop)rootrg   N)(__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesversion_addedr   r   Typetype_keywordsReservedstorage_keywordsstructure_keywordsstatement_keywordsconditional_keywordsrepeat_keywordsother_keywordsConstantconstant_keywordsr   r   Singler
   FloatBinOctHexIntegerr   Builtinr	   EscapeHeredocr   r   tokens     S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/zig.pyr   r      s        
 D
"CgG	IIM 	 
  %	& 	& 	& 	M 	 6>C	E 	E 	E 		 	25AAA
 	 #+0	2 	2 	2 		 	=eLLL
 	u---O
 	.u===N
 	4UCCC JZ (   Fv|T7F0&,?(&,7 $&*%
+' t|,d# &-(R]V$ FN+V^,VX& #H-{+Y-
^ O]6"66"	
_5 5FFFr   N)rm   pygments.lexerr   r   pygments.tokenr   r   r   r   r	   r
   r   r   __all__r   r   r   r   <module>r      s     - , , , , , , ,$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ ,k k k k kz k k k k kr   