File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/zig.cpython-310.pyc
o
;j� � @ sV d Z ddlmZmZ ddlmZmZmZmZm Z m
Z
mZmZ dgZ
G dd� de�ZdS )z�
pygments.lexers.zig
~~~~~~~~~~~~~~~~~~~
Lexers for Zig.
:copyright: Copyright 2006-present 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 Zd ZdZdZdZdgZdgZdgZdZ e
dd d
�ejfZ
e
dd d
�ejfZe
dd d
�efZe
d
d d
�efZe
dd d
�efZe
dd d
�efZe
dd d
�efZe
dd d
�ejfZdefdefdejfeeeee
eeedejfdejfdejfdejfdejfdejfdejfdejfde j!fde fde"j#fd e"j#fd!e"fd"e"j$fd#e"j$fd$e"d%fd&e%fd'e&fgd(e"j#fd)e"fd*e"d+fgd,�Z'd-S ).r ze
Lexer for the Zig language.
grammar: https://ziglang.org/documentation/master/#Grammar
ZZigzhttp://ziglang.orgZzigz*.zigztext/zig� )#�boolZf16Zf32Zf64Zf128ZvoidZnoreturn�typeZanyerrorZpromiseZi0Zu0ZisizeZusizeZcomptime_intZcomptime_float�c_short�c_ushort�c_int�c_uint�c_long�c_ulong�
c_longlong�c_ulonglong�c_longdoubleZc_voidi8�u8Zi16�u16Zi32�u32Zi64Zu64Zi128Zu128z\b)�suffix)�const�varZextern�packedZexportZpubZnoalias�inlineZcomptimeZnakedccZ stdcallccZvolatileZ allowzeroZalignZlinksectionZthreadlocal)�struct�enum�union�error)�break�return�continueZasmZdeferZerrdeferZunreachable�tryZcatch�async�awaitZsuspendZresume�cancel)�if�elseZswitch�and�or�orelse)�while�for)�fnZusingnamespace�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]+z0b[01]+z0o[0-7]+z0x[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]*zc\\\\[^\n]*zc?"�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)�rootr8 N)(�__name__�
__module__�__qualname__�__doc__�name�url�aliases� filenamesZ mimetypesZ
version_addedr r �TypeZ
type_keywordsZReservedZstorage_keywordsZstructure_keywordsZstatement_keywordsZconditional_keywordsZrepeat_keywordsZother_keywordsZConstantZconstant_keywordsr r �Singler ZFloatZBin�OctZHexZIntegerr ZBuiltinr ZEscapeZHeredocr r
�tokens� rG rG �G/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/zig.pyr s� ��
��
���
�
�
�
���/��
�N)r>