https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/lexers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/c_cpp.cpython-310.pyc
o

���a�>�@s�dZddlZddlmZmZmZmZmZmZm	Z	m
Z
ddlmZddl
mZmZmZmZmZmZmZmZmZddgZGdd	�d	e�ZGd
d�de�ZGdd�de�ZdS)z�
    pygments.lexers.c_cpp
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for C/C++ languages.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include�bygroups�using�this�inherit�default�words)�get_bool_opt)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�
Whitespace�CLexer�CppLexerc@s(eZdZdZdZdZdZdZdZdZ	de
jd	fd
e
jdfded
ee
e�e
j�d	fdedee
e�e
j�dfdedeee
e�ejee�fdefdefdefde
jfde
jfde
jfged�ed�deeje�dfdeejejejej�fdedededed ed!ejfd"edededed#ed$ejfd%ed&ed'ed(ed)ejfd*eeejfd+eejfd,eejfd-eeejfd.e fd/efd0ej!feefge"d1d2d3d4�e#j$fe"d5d3d6�e#j%fgd7ee#e�d8fe"d9d3d6�e#fe"d:d3d6�e#j$fd;e#j$fe"d<d2d3d4�e#j$fged=�ed�d>e	d?e	d@ee
e�ej&e
e�e
e�e�dAfd>e	d?e	dBee
e�ej&e
e�e
e�e�fed�e'dC�ged=�edD�dEefdFedGfged=�edD�dHefdIedJfdEedGfgdKedGfdLej(fdMefdefdNefgd>edOedPee
e�e
je
e�e
j)e
j�fd>edOedQee
e�e
je
e�e
j)e
j�fdRe
jfdSe
jfdTe
jdGfdUe
jfdVe
jfde
jdGfgdWe
jdJfdXe
jdGfdYe
jdGfdZe
fgeej*dGfd[edGfe'dG�gd\�Z+hd]�Z,hd^�Z-hd_�Z.hd`�Z/dadb�Z0dcdd�Z1deS)f�CFamilyLexerzg
    For C family source code.  This is used as a base class to avoid repetitious
    definitions.
    z\s*(?:/[*].*?[*]/\s*)?z[0-9a-fA-F](\'?[0-9a-fA-F])*z
\d(\'?\d)*z!(([uU][lL]{0,2})|[lL]{1,2}[uU]?)?z4(?!\d)(?:[\w$]|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8})+z7(?!\d)(?:[\w$]|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|::)+z^#if\s+0�if0z^#�macroz^(z
)(#if\s+0)z)(#)z@(^[ \t]*)(?!(?:public|private|protected|default)\b)(case\b\s+)?(z)(\s*)(:)(?!:)z\nz[^\S\n]+z\\\nz//(\n|[\w\W]*?[^\\]\n)z/(\\\n)?[*][\w\W]*?[*](\\\n)?/z/(\\\n)?[*][\w\W]*�keywords�typesz([LuU]|u8)?(")�stringzA([LuU]|u8)?(')(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])(')z0[xX](z\.z|\.�|z
)[pP][+-]?z[lL]?z(-)?(z
)[eE][+-]?z[fFlL]?z(-)?((z\.(z)?|\.z)[fFlL]?)|(z[fFlL])z	(-)?0[xX]z(-)?0[bB][01](\'?[01])*z(-)?0(\'?[0-7])+z(-)?z[~!%^&*+=|?:<>/-]z
[()\[\],.]z(true|false|NULL)\b)�int8�int16�int32�int64�wchar_t�__�\b��prefix�suffix)
�bool�int�long�float�short�double�char�unsigned�signed�void�r&z(struct|union)(\s+)�	classname)�asm�auto�break�case�const�continuer�do�else�enum�extern�for�goto�if�register�
restricted�return�sizeof�struct�static�switch�typedef�volatile�while�union�thread_local�alignas�alignof�
static_assert�_Pragma)�inline�_inline�__inline�naked�restrict�threadz(__m(128i|128d|128|64))\b)r3�based�except�stdcall�cdecl�fastcall�declspec�finally�try�leave�w64�	unaligned�raise�noop�
identifier�forceinline�assume�
whitespace�(z
(?:[&*\s])+)(z)(\s*\([^;]*?\))([^;{]*)(\{)�functionz)(\s*\([^;]*?\))([^;]*)(;)�	statement�
statementsz\}z[{;]�#pop�;z\{z#push�"zO\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|[0-7]{1,3})z	[^\\"\n]+z\\z)(include)(z)("[^"]+")([^\n]*)z)(<[^>]+>)([^\n]*)z[^/\n]+z/[*](.|\n)*?[*]/z//.*?\n�/z	(?<=\\)\nz^\s*#if.*?(?<!\\)\nz^\s*#el(?:se|if).*\nz^\s*#endif.*?(?<!\\)\nz.*?\n�\s*(?=>))rfrjrr�rootrirhrrrr2>�DIR�FILE�div_t�off_t�fpos_t�ldiv_t�size_t�time_t�wint_t�clock_t�jmp_buf�ssize_t�va_listr!�wctype_t�	mbstate_t�	ptrdiff_t�	wctrans_t�sig_atomic_t>�int8_t�int16_t�int32_t�int64_t�uint8_t�intmax_t�intptr_t�uint16_t�uint32_t�uint64_t�	uintmax_t�	uintptr_t�int_fast8_t�int_fast16_t�int_fast32_t�int_fast64_t�int_least8_t�uint_fast8_t�
int_least16_t�
int_least32_t�
int_least64_t�
uint_fast16_t�
uint_fast32_t�
uint_fast64_t�
uint_least8_t�uint_least16_t�uint_least32_t�uint_least64_t>�id_t�dev_t�gid_t�ino_t�key_t�pid_t�sig_t�uid_t�mode_t�nfds_t�rlim_t�timer_t�sigset_t�sigval_t�	clockid_t�	cpu_set_t�	cpumask_t�	siginfo_t�	socklen_t�sighandler_t>%�
atomic_int�atomic_bool�atomic_char�atomic_long�atomic_uint�atomic_llong�atomic_schar�atomic_short�atomic_uchar�atomic_ulong�
atomic_size_t�
atomic_ullong�
atomic_ushort�atomic_wchar_t�atomic_char16_t�atomic_char32_t�atomic_intmax_t�atomic_intptr_t�atomic_ptrdiff_t�atomic_uintmax_t�atomic_uintptr_t�atomic_int_fast8_t�atomic_int_fast16_t�atomic_int_fast32_t�atomic_int_fast64_t�atomic_int_least8_t�atomic_uint_fast8_t�atomic_int_least16_t�atomic_int_least32_t�atomic_int_least64_t�atomic_uint_fast16_t�atomic_uint_fast32_t�atomic_uint_fast64_t�atomic_uint_least8_t�atomic_uint_least16_t�atomic_uint_least32_t�atomic_uint_least64_tcKsNt|dd�|_t|dd�|_t|dd�|_t|dd�|_tj|fi|��dS)N�stdlibhighlightingT�c99highlighting�c11highlighting�platformhighlighting)r
r�r�r�r�r�__init__)�self�options�r��7/usr/lib/python3/dist-packages/pygments/lexers/c_cpp.pyr��s
zCFamilyLexer.__init__ccs��t�||�D]>\}}}|tur?|jr||jvrtj}n#|jr(||jvr(tj}n|j	r4||j
vr4tj}n|jr?||jvr?tj}|||fVqdS)N)
r�get_tokens_unprocessedrr��stdlib_typesr�Typer��	c99_typesr��c11_atomic_typesr��linux_types)r��text�index�token�valuer�r�r�r��s�
��z#CFamilyLexer.get_tokens_unprocessedN)2�__name__�
__module__�__qualname__�__doc__�_ws1�_hexpart�_decpart�
_intsuffix�_ident�_namespaced_identr�Preprocrrrrr�Labelrr�Single�	Multilinerr�Affix�Charr�Float�Hex�Bin�Oct�Integerr
�Builtinr	r�Reservedr��Functionr�Escape�PreprocFile�Class�tokensr�r�r�r�r�r�r�r�r�r�rs$


�
�
���00(�������������
����
���������	��

�


�
��rc@sbeZdZdZdZdgZgd�Zgd�ZdZe	ddd	�e
fege	d
dd	�e
jfegd�Z
dd
�ZdS)ra�
    For C source code with preprocessor directives.

    Additional options accepted:

    `stdlibhighlighting`
        Highlight common types found in the C/C++ standard library (e.g. `size_t`).
        (default: ``True``).

    `c99highlighting`
        Highlight common types found in the C99 standard library (e.g. `int8_t`).
        Actually, this includes all fixed-width integer types.
        (default: ``True``).

    `c11highlighting`
        Highlight atomic types found in the C11 standard library (e.g. `atomic_bool`).
        (default: ``True``).

    `platformhighlighting`
        Highlight common types found in the platform SDK headers (e.g. `clockid_t` on Linux).
        (default: ``True``).
    �C�c)z*.cz*.hz*.idcz*.x[bp]m)ztext/x-chdrztext/x-csrczimage/x-xbitmapzimage/x-xpixmap皙�����?)
�_Alignas�_Alignof�	_Noreturn�_Generic�
_Thread_local�_Static_assert�
_Imaginary�noreturn�	imaginary�complexr#r1)�_Bool�_Complex�_Atomic)rrcCs,t�d|tj�r
dSt�d|tj�rdSdS)Nz^\s*#include [<"]r	z
^\s*#ifn?def )�re�search�	MULTILINE�r�r�r�r��analyse_texts
�zCLexer.analyse_textN)r�r�r�r��name�aliases�	filenames�	mimetypes�priorityr	rrr�rrr�r�r�r�r�s&�����c
@seZdZdZdZddgZgd�ZddgZdZd	e	e
je
e
je
je
e
je
�fe
ge
ed
ddd
�ejfdejfged�eddd�efejejdfdedfed�gde	ee�dfeddd�efdedfde	ee�dfe
gdejfe
gdedfdejfejejfed�gd �Zd!d"�Zd#S)$ra�
    For C++ source code with preprocessor directives.

    Additional options accepted:

    `stdlibhighlighting`
        Highlight common types found in the C/C++ standard library (e.g. `size_t`).
        (default: ``True``).

    `c99highlighting`
        Highlight common types found in the C99 standard library (e.g. `int8_t`).
        Actually, this includes all fixed-width integer types.
        (default: ``True``).

    `c11highlighting`
        Highlight atomic types found in the C11 standard library (e.g. `atomic_bool`).
        (default: ``True``).

    `platformhighlighting`
        Highlight common types found in the platform SDK headers (e.g. `clockid_t` on Linux).
        (default: ``True``).
    zC++�cppzc++)z*.cppz*.hppz*.c++z*.h++z*.ccz*.hhz*.cxxz*.hxxz*.Cz*.Hz*.cpz*.CPPz
text/x-c++hdrz
text/x-c++srcr	z<((?:[LuU]|u8)?R)(")([^\\()\s]{,16})(\()((?:.|\n)*?)(\)\3)("))�virtual_inheritance�uuidof�super�single_inheritance�multiple_inheritance�	interface�eventr"r#r$z#__(offload|blockingoffload|outer)\brf)�classrDr1rkroz(class|concept|typename)(\s+)r2))�catch�
const_cast�delete�dynamic_cast�explicit�export�friend�mutable�new�operator�private�	protected�public�reinterpret_castr)rT�static_cast�templater�throw�throwsr]�typeidr�virtual�	constexpr�nullptr�concept�decltype�noexcept�override�final�	constinit�	consteval�co_await�	co_return�co_yield�requires�import�module�typenameznamespace\b�	namespacez(enum)(\s+)�enumnamezchar(16_t|32_t|8_t)\bz[;{])rkrpzinline\bri)rjrprOrrrNcCs$t�d|�rdSt�d|�rdSdS)Nz#include <[a-z_]+>g�������?zusing namespace g�������?)rrrr�r�r�rls
�zCppLexer.analyse_textN)r�r�r�r�rrrrr rrr��	Delimiterrr	rr�Pseudorrr�rrrrrr�r�	Namespacerrr�r�r�r�rs`������
�
	�	�
��
��6)r�r�pygments.lexerrrrrrrrr	�
pygments.utilr
�pygments.tokenrrr
rrrrrr�__all__rrrr�r�r�r��<module>s
(,P2

https://t.me/RX1948 - 2025