HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/rust.cpython-312.pyc
�

|�e ��l�dZddlmZmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZdgZGd�de�Zy)z�
    pygments.lexers.rust
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Rust language.

    :copyright: Copyright 2006-2023 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�H�eZdZdZdZdZddgZddgZdd	gZe	d
d��e
jfZe	d
d��e
jfZe	dd��e
j j"fZdej(fed�ggdef�def�dej0f�dej0f�dej2f�dej0df�dej0df�dej4df�dej(f�e	dd��e
f�e	dd��e
j6f�de
j8f�d e
jj:f�d!e
d"f�d#e
j<f�d$e
d%f�d&e
d'f�d(ee
e e
�f�e�d)e
jj:f�e�e�d*e f�d+e d'f�d,ee
e j,e
jB�f�d-ejDf�d.ejDf�d/e#jHd0f�d1e#jJd0f�d2e#jLd0f�d3e#jNd0f�d4e#jPd0f�d5ed6f�d7ed8f�d9ef�d:e)d;f�d<e)f�d=e*f�d>e)f�d?e
f�d@e
f�dAej(dBf�dCe f�dDej4fdej4dEfdFej4dGfdHej4fgdDej0fdej0dEfdFej0dGfdHej0fgde fd?e
jVdGfedG�gde fd?e
j dGfedG�gde fdIe
j:fd:e)d;feed?e
jXdGfedG�gdJe
jfdKe
jZfedG�gdLe
dGfdMe
dGfedG�gd7edGfdNej\fdOefdPefgdQej\fe/d8�gd7ed8fdRej(dBfge/dS�dTej(dGfdUej(fgdV�
Z0yW)Xrz\
    Lexer for the Rust programming language (version 1.47).

    .. versionadded:: 1.6
    �Rustzhttps://www.rust-lang.org/z*.rsz*.rs.in�rust�rsz	text/rustztext/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)\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}rr~r�r�r�r�r�r�r�r�r�N)1�__name__�
__module__�__qualname__�__doc__�name�url�	filenames�aliases�	mimetypesrr�Type�
keyword_typesr�Builtin�builtin_funcs_types�Function�Magic�builtin_macrosr	�Preprocrrr
�Doc�Single�	Multiline�Reserved�Constant�Pseudo�Declarationrr�Label�Charr�Bin�Oct�Hex�Float�Integerr
r�	Namespace�Class�	Attribute�Escaper�tokens���6/usr/lib/python3/dist-packages/pygments/lexers/rust.pyrrsG���
�D�
&�C���#�I��t�n�G��m�,�I������l�l�$�M�
!�"����l�l�$����"�#�"�]�]�(�(�#*�N�.�w���/��F�O�	
�W
�
�J��W
��Z� �W
��&�*�*�%�	W
�
"�6�:�:�.�W
��7�>�>�*�
W
� ����\�:�W
��f�j�j�,�/�W
��W�&�&�	�2�W
�2�7�?�?�C�W
��I� �	!�#*�	
+�W
�&�L��!�")�"2�"2�
4�'W
�,�� 0� 0�1�-W
�.����+�+�,�/W
�0�w�	�*�1W
�2�w�*�*�+�3W
�4�g�z�*�5W
�6+�G�Z�@�7W
�8*�8�G�T�7�+K�L�9W
�:
�;W
�<�4�<�<�.�.�/�=W
�@
 �AW
�B
�CW
�F�d�O�GW
�J�$�
�+�KW
�N9�
�g�t����
�
�
;�
=�OW
�V1�
�[�[�
�WW
�\1�
�[�[�
�]W
�f�&�*�*�l�3�gW
�j�6�:�:�|�4�kW
�n#�F�J�J��=�oW
�r3�4:�L�L�
�
�sW
�x�f�n�n�l�;�yW
�~�F�L�)�W
�@�6�8�$�AW
�B#�F�+�CW
�H�8�Z�(�IW
�N��!�OW
�P�{�+�QW
�R$�X�.�SW
�X�d�#�YW
�\��%�]W
�b�w����5�cW
�l�4�L�mW
�r��)�)�*�
�W�&�&��0�
�W�&�&��/�
�g�'�'�(�	
���
�
�#�
�V�Z�Z��)�
�V�Z�Z��(�
�f�j�j�!�	
��T�N�
�d�n�n�f�5��F�O�
��T�N�
�d�m�m�V�4��F�O�
��T�N�
�7�>�>�"�
�8�Z�(���
�d�j�j�&�1��F�O�
��D�L�L�)�
�t�~�~�.��F�O�
�&�w��7�
�'�6�*��F�O�
��6�6�"�-�.4�m�m�
=�
�� �
�F�O�
�-�f�m�m�<��H��
�
�6�8�$�
�G�O�O�\�2�
�

�&�'�
�G�O�O�V�,�
�7�?�?�+�
�o\�Fr�N)r��pygments.lexerrrrrr�pygments.tokenrr	r
rrr
rrr�__all__rr�r�r��<module>r�s9���I�H�$�$�$��-��M�
�Mr�