| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼa� � @ sf d Z ddlmZmZmZmZmZ ddlmZm Z m
Z
mZmZm
Z
mZmZmZ dgZG dd� de�ZdS )z�
pygments.lexers.rust
~~~~~~~~~~~~~~~~~~~~
Lexers for the Rust language.
:copyright: Copyright 2006-2021 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 - @ s e Zd ZdZdZddgZddgZddgZed d
d�e j
fZedd
d�ej
fZed
dd�ejjfZdejfed�gdefdefdejfdejfdejfdejdfdejdfdejdfdejfedd
d�e fedd
d�e jfde jfdej
jfd e d!fd"e jfd#e d$fd%e d&fd'ee ee �fed(ej
jfeed)efd*ed&fd+ee ejej �fd,ej!fd-ej!fd.e"j#d/fd0e"j$d/fd1e"j%d/fd2e"j&d/fd3e"j'd/fd4ed5fd6ed7fd8efd9e(d:fd;e(fd<e)fd=e(fd>efd?efd@ejdAfdBefg+dCejfdejdDfdEejdFfdGejfgdCejfdejdDfdEejdFfdGejfgdefd>ej*dFfedF�gdefd>ejdFfedF�gdefdHe jfd9e(d:feed>ej+dFfedF�gdIej
fdJej,fedF�gdKe dFfdLe dFfedF�gd6edFfdMej-fdNefdOefgdPej-fe.d7�gd6ed7fdQejdAfge.dR�dSejdFfdTejfgdU�
Z/dVS )Wr z\
Lexer for the Rust programming language (version 1.47).
.. versionadded:: 1.6
ZRustz*.rsz*.rs.inZrustZrsz text/rustztext/x-rust)�u8�u16�u32Zu64Zu128Zi8Zi16Zi32Zi64Zi128ZusizeZisizeZf32Zf64�char�str�boolz\b)�suffix)$ZCopyZSend�SizedZSyncZUnpinZDropZFnZFnMutZFnOnceZdropZBoxZToOwnedZCloneZ PartialEqZ
PartialOrdZEqZOrdZAsRefZAsMutZIntoZFromZDefault�IteratorZExtendZIntoIteratorZDoubleEndedIteratorZExactSizeIteratorZOptionZSome�NoneZResultZOkZErrr ZToStringZVec)2Zasm�assertZ assert_eqZ assert_neZcfg�columnZ
compile_error�concatZ
concat_identsZdbgZdebug_assertZdebug_assert_eqZdebug_assert_ne�envZeprintZeprintln�file�formatZformat_argsZformat_args_nlZ
global_asmr Z
include_bytesZinclude_strZis_aarch64_feature_detectedZis_arm_feature_detectedZis_mips64_feature_detectedZis_mips_feature_detectedZis_powerpc64_feature_detectedZis_powerpc_feature_detectedZis_x86_feature_detected�lineZllvm_asmZ
log_syntaxZmacro_rules�matchesZmodule_pathZ
option_envZpanic�printZprintlnZ stringifyZthread_localZtodoZtrace_macrosZ
unimplementedZunreachableZvec�writeZwriteln�!z
#![^[\r\n].*$�basez\nz\s+z//!.*?\nz///(\n|[^/].*?\n)z //(.*?)\nz/\*\*(\n|[^/*])�
doccommentz/\*!z/\*�commentz\$([a-zA-Z_]\w*|\(,?|\),?|,?))�as�async�awaitZbox�constZcrateZdyn�elseZextern�for�if�impl�inZloop�match�moveZmutZpub�ref�returnZstatic�superZtraitZunsafeZuse�where�while)ZabstractZbecomeZdo�finalZmacro�overrideZprivZtypeof�tryZunsizedZvirtual�yieldz(true|false)\bzself\bzmod\b�modnamezlet\bzfn\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}\}|.)'z0b[01_]+�
number_litz 0o[0-7_]+z0[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_]*zb"�
bytestring�"�stringz(?s)b?r(#*)".*?"\1�'�lifetimez\.\.=?z
[{}()\[\],.;]z[+\-*/%&|<>^!~@=:?]z[a-zA-Z_]\w*zr#[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)zf(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&