
    L&i                      t    d Z ddl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.rust
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Rust language.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerincludebygroupswordsdefault)	TextCommentOperatorKeywordNameStringNumberPunctuation
Whitespace	RustLexerc                      e Zd ZdZdZdZddgZddgZdd	gZ e	d
d          e
j        fZ e	dd          ej        fZ e	dd          ej        j        fZdej        f ed          gg defdefdej        fdej        fdej        fdej        dfdej        dfdej        dfdej        f e	dd          e
f e	dd          e
j        fde
j        fd ej        j        fd!e
d"fd#e
j        fd$e
d%fd&e
d'fd( ee
e e
          fed)ej        j        feed*e fd+e d'fd, ee
e j        ej!                  fd-ej"        fd.ej"        fd/e#j$        d0fd1e#j%        d0fd2e#j&        d0fd3e#j'        d0fd4e#j(        d0fd5ed6fd7ed8fd9efd:e)d;fd<e)fd=e*fd>e)fd?efd@efdAej        dBfdCe fdDej        fdej        dEfdFej        dGfdHej        fgdDej        fdej        dEfdFej        dGfdHej        fgde fd?ej+        dGf edG          gde fd?ej        dGf edG          gde fdIe
j        fd:e)d;feed?ej,        dGf edG          gdJej        fdKej-        f edG          gdLe
dGfdMe
dGf edG          gd7edGfdNej.        fdOefdPefgdQej.        f e/d8          gd7ed8fdRej        dBfg e/dS          dTej        dGfdUej        fgdVZ0dWS )Xr   z\
    Lexer for the Rust programming language (version 1.47).

    .. versionadded:: 1.6
    Rustzhttps://www.rust-lang.org/z*.rsz*.rs.inrustrsz	text/rustztext/x-rust)u8u16u32u64u128i8i16i32i64i128usizeisizef32f64charstrboolz\b)suffix)$CopySendSizedSyncUnpinDropFnFnMutFnOncedropBoxToOwnedClone	PartialEq
PartialOrdEqOrdAsRefAsMutIntoFromDefaultIteratorExtendIntoIteratorDoubleEndedIteratorExactSizeIteratorOptionSomeNoneResultOkErrr   ToStringVec)2asmassert	assert_eq	assert_necfgcolumncompile_errorconcatconcat_identsdbgdebug_assertdebug_assert_eqdebug_assert_neenveprinteprintlnfileformatformat_argsformat_args_nl
global_asmr   include_bytesinclude_stris_aarch64_feature_detectedis_arm_feature_detectedis_mips64_feature_detectedis_mips_feature_detectedis_powerpc64_feature_detectedis_powerpc_feature_detectedis_x86_feature_detectedlinellvm_asm
log_syntaxmacro_rulesmatchesmodule_path
option_envpanicprintprintln	stringifythread_localtodotrace_macrosunimplementedunreachablevecwritewriteln!z#![^[\r\n].*$basez\nz\s+z//!.*?\nz///(\n|[^/].*?\n)z	//(.*?)\nz/\*\*(\n|[^/*])
doccommentz/\*!z/\*commentz\$([a-zA-Z_]\w*|\(,?|\),?|,?))asasyncawaitboxconstcratedynelseexternforifimplinloopmatchmovemutpubrefreturnstaticsupertraitunsafeusewherewhile)abstractbecomedofinalmacrooverrideprivtypeoftryunsizedvirtualyieldz(true|false)\bzself\bzmod\bmodnamezlet\bzfn\bfuncnamez(struct|enum|type|union)\btypenamez(default)(\s+)(type|fn)\bz	[sS]elf\bz::\bz(?::|->)z((break|continue)(\b\s*)(\'[A-Za-z_]\w*)?zA'(\\['"\\nrt]|\\x[0-7][0-9a-fA-F]|\\0|\\u\{[0-9a-fA-F]{1,6}\}|.)'z@b'(\\['"\\nrt]|\\x[0-9a-fA-F]{2}|\\0|\\u\{[0-9a-fA-F]{1,6}\}|.)'z0b[01_]+
number_litz	0o[0-7_]+z0[xX][0-9a-fA-F_]+zJ[0-9][0-9_]*(\.[0-9_]+[eE][+\-]?[0-9_]+|\.[0-9_]*(?!\.)|[eE][+\-]?[0-9_]+)z[0-9][0-9_]*zb"
bytestring"stringz(?s)b?r(#*)".*?"\1'lifetimez\.\.=?z[{}()\[\],.;]z[+\-*/%&|<>^!~@=:?]z[a-zA-Z_]\w*zr#[a-zA-Z_]\w*z#!?\[
attribute[#z[^*/]+z#pushz\*/z#popz[*/]&z
(static|_)z[a-zA-Z_]+\w*z[ui](8|16|32|64|size)zf(32|64)z;\\['"\\nrt]|\\x[0-7][0-9a-fA-F]|\\0|\\u\{[0-9a-fA-F]{1,6}\}z[^\\"]+z\\z\\x[89a-fA-F][0-9a-fA-F]z\[attribute_commonz\]z	[^"\]\[]+)rootr}   r   r~   r   r   r   r   r   r   r   r   r   N)1__name__
__module____qualname____doc__nameurl	filenamesaliases	mimetypesr   r   Typekeyword_typesr   Builtinbuiltin_funcs_typesFunctionMagicbuiltin_macrosr	   Preprocr   r   r   DocSingle	MultilineReservedConstantPseudoDeclarationr   r   LabelCharr   BinOctHexFloatIntegerr
   r   	NamespaceClass	AttributeEscaper   tokens     a/home/geonatureadmin/si_en_reseau/tutos/venv/lib/python3.11/site-packages/pygments/lexers/rust.pyr   r      s[        
 D
&C#ItnGm,IU     l$M
 !5 "    l$ e " #  " ](#*N. w/GFOO	
W
JW
 Z W
 &*%	W

 "6:.W
 7>*W
  \:W
 fj,/W
 W&	2W
 27?CW
 U I  	! ! ! #*	+W
& U L! ! !")"24'W
,  01-W
. +,/W
0 w	*1W
2 w*+3W
4 gz*5W
6 +GZ@7W
8 *88GT7+K+KL9W
: ;W
< 4<./=W
@  AW
B CW
F dOGW
J $
+KW
N 9Xgt
;;=OW
V1[WW
\1[]W
f &*l3gW
j 6:|4kW
n #FJ=oW
r34:LsW
x fnl;yW
~ FL)W
@ 68$AW
B #F+CW
H 8Z(IW
N !OW
P {+QW
R $X.SW
X d#YW
\ %]W
b w5cW
l 4LmW
r )*W&0W&/g'(	
 
#VZ)VZ(fj!	
 TNdnf5GFOO
 TNdmV4GFOO
 TN7>"8Z(dj&1GFOO
 DL)t~.GFOO
 &w7'6*GFOO
 66"-.4m= FO
 -fm<GH

 68$GO\2

 G&''GOV,7?+
o\ \FFFr   N)r   pygments.lexerr   r   r   r   r   pygments.tokenr   r	   r
   r   r   r   r   r   r   __all__r   r   r   r   <module>r      s     I H H H H H H H H H H H H H$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ -M M M M M
 M M M M Mr   