U
    YSh                     @   sV   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 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                   @   s  e Zd ZdZdZdZdgZdgZdgZdZ	e
dd	d
ejfZe
dd	d
ejfZe
dd	d
efZe
dd	d
efZe
dd	d
efZe
dd	d
efZe
dd	d
efZe
d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 )#boolZf16Zf32Zf64Zf128voidZnoreturntypeZanyerrorZpromiseZi0Zu0isizeZusizeZcomptime_intZcomptime_floatZc_shortZc_ushortZc_intZc_uintZc_longZc_ulongZ
c_longlongZc_ulonglongZc_longdoubleZc_voidi8u8Zi16u16Zi32u32Zi64Zu64Zi128Zu128z\b)suffix)constvarZexternpackedZexportZpubZnoaliasinlineZcomptimeZnakedccZ	stdcallccZvolatileZ	allowzeroalignZlinksectionZthreadlocal)structenumunionerror)breakreturncontinueasmZdeferZerrdeferZunreachabletryZcatchasyncawaitZsuspendresumecancel)ifelseswitchandorZorelse)whilefor)fnZusingnamespacetest)truefalsenullZ	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)rootr6   N)(__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesversion_addedr   r   TypeZtype_keywordsReservedZstorage_keywordsZstructure_keywordsZstatement_keywordsZconditional_keywordsZrepeat_keywordsZother_keywordsConstantZconstant_keywordsr   r   Singler	   FloatBinOctHexIntegerr   Builtinr   EscapeHeredocr   r
   tokens rP   rP   F/root/rtd-docs/venv/lib/python3.8/site-packages/pygments/lexers/zig.pyr      s   





/N)r<   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r
   r   __all__r   rP   rP   rP   rQ   <module>   s   
(