o
    ‡ÎÖac  ã                   @   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-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚwords)ÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚZigLexerc                   @   sx  e Zd ZdZdZdgZdgZdg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   zz
    For `Zig <http://www.ziglang.org>`_ source code.

    grammar: https://ziglang.org/documentation/master/#Grammar
    ÚZigÚ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)Úrootrd   N)&Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesr   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© r„   r„   ú5/usr/lib/python3/dist-packages/pygments/lexers/zig.pyr      s–    ûù
þü
þþü
þ
þ
þ
þÿÔ/ÿü
ÑN)rj   Úpygments.lexerr   r   Úpygments.tokenr   r   r   r   r   r	   r
   r   Ú__all__r   r„   r„   r„   r…   Ú<module>   s
    
(