Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
c_cpp.cpython-313.pyc138 linesDownload Raw Back to __pycache__
1�

2�j�G���SrSSKrSSKJrJrJrJrJrJrJ	r	J3r4 SSKJr SSK
JrJrJrJrJrJrJrJrJr SS/r"SS	\5r"S5S\5r"SS\5rg)z�6pygments.lexers.c_cpp7~~~~~~~~~~~~~~~~~~~~~8 9Lexers for C/C++ languages.10 11:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.12:license: BSD, see LICENSE for details.13�N)�14RegexLexer�include�bygroups�using�this�inherit�default�words)�get_bool_opt)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�15Whitespace�CLexer�CppLexerc��	�\rSrSrSrSrSrSrSrSr	Sr16S	rS17rS\S\S
3r
S\RS4S\RS4S\-S-\"\"\5\R5S4S\-S-\"\"\5\R5S4S\	-S-\"\\R*\\54S\4S\4S\4\\R04\\R24S\R24/\"S5\"S5S\"\R8\5S4S\"\R8\R:\R:\R:54S \-S!-\-S"-\-S#-\-S$-\-S%-\R>4S&\-S!-\-S"-\-S#-\-S'-\-S(-\R>4S)\-S*-\-S+-\-S,-\-S--\R>4S.\-\-\R@4S/\-\RB4S0\-\RD4S1\-\-\RF4S2\$4S3\4S4\RJ4\	\4/\&"S5S6S7S89\'RP4\&"S9S7S:9\'RR4/S;\"\'\5S<4S=\'S>4\&"S?S7S:9\'4\&"S@S7S:9\'RP4SA\'RP4\&"SBS6S7S89\'RP4/\"SC5\"S5SD\18-SE-\
-SF-\19-SF-\
-SG-\
-SH-\"\"\5\"\SCSI9\RT\"\SCSI9\"\5\"\SCSI9\"\5\5SJ4SD\20-SE-\
-SF-\21-SF-\
-SG-\
-SK-\"\"\5\"\SCSI9\RT\"\SCSI9\"\5\"\SCSI9\"\5\54\"S5\+"SL5/\"SC5\"SM5SN\4SO\SP4/\"SC5\"SM5SQ\4SR\SS4SN\SP4/ST\SP4SU\RX4SV\4S\4SW\4/SD\-SX-\-SY-\"\"\5\R\"\5\RZ\R054SD\-SX-\-SZ-\"\"\5\R\"\5\RZ\R054S[\R4S\\R24S]\R0SP4S^\R4S_\R4S\RSP4/S`\RSS4Sa\RSP4Sb\RSP4Sc\4/\	\R\SP4Sd\SP4\+"SP5/Se\SP4\	\R^4\"SC5\"SM5/Sf.r01Sgkr11Shkr21Sikr31Sjkr4Skr5SoSljr6Smr7gn)p�CFamilyLexer�z[22For C family source code.  This is used as a base class to avoid repetitious23definitions.24z\s*(?:/[*].*?[*]/\s*)?z[0-9a-fA-F](\'?[0-9a-fA-F])*z25\d(\'?\d)*z:(([uU]?[zZ])|([zZ][uU])|([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//(?:.|(?<=\\)\n)*\nz5/(?:\\\n)?[*](?:[^*]|[*](?!(?:\\\n)?/))*[*](?:\\\n)?/z\s*(?:(?:(?:z)|(?:z))\s*)*z^#if\s+0�if0z^#�macroz^(z26)(#if\s+0)z)(#)z4(^[ \t]*)(?!(?:public|private|protected|default)\b)(z)(\s*)(:)(?!:)z\nz[^\S\n]+z\\\nz/(\\\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|\.�|z27)[pP][+-]?z[lL]?z(-)?(z28)[eE][+-]?z[fFlL]?z(-)?((z\.(z)?|\.z)[fFlL]?)|(z[fFlL])z	(-)?0[xX]z(-)?0[bB][01](\'?[01])*z(-)?0(\'?[0-7])+z(-)?z[~!%^&*+=|?:<>/-]z29[()\[\],.]z(true|false|NULL|nullptr)\b)�int8�int16�int32�int64�wchar_t�__�\b��prefix�suffix)�bool�int�long�float�short�double�char�unsigned�signed�void�_BitInt�__int128�r)z(struct|union)(\s+)�	classnamezcase\b�30case-value)!�asm�auto�break�const�	constexpr�continuer	�do�else�enum�extern�for�goto�if�register�31restricted�return�sizeof�struct�static�switch�typedef�typeof�
typeof_unqual�volatile�while�union�thread_local�alignas�alignof�
static_assert�_Pragma�fortran)�inline�_inline�__inline�naked�restrict�threadz(__m(128i|128d|128|64))\b)r9�based�except�stdcall�cdecl�fastcall�declspec�finally�try�leave�w64�	unaligned�raise�noop�32identifier�forceinline�assume�null�33whitespace�(z
(?:[&*\s])+)(z)(z)(\([^;"\')]*?\))(z)([^;{/"\']*)(\{))�state�functionz)([^;/"\']*)(;)�	statement�34statementsz\}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*(?=>)z(?<!:)(:)(?!:))rprurr�rootrtrsrrrr7r8>�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>%�35atomic_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_tc���[USS5Ul[USS5Ul[USS5Ul[USS5Ul[36R"U40UD6 g)N�stdlibhighlightingT�c99highlighting�c11highlighting�platformhighlighting)rr�r�r�r�r�__init__)�self�optionss  �[D:\code\apps\devtools\python\user_packages\Python313\site-packages\pygments/lexers/c_cpp.pyr��CFamilyLexer.__init__�s^��".�w�8L�d�"S���+�G�5F��M���+�G�5F��M���$0��:P�RV�$W��!����D�,�G�,�c#��# �[R"XU5H�up4nU[La�UR(a XPR;a[37RnO�UR(a XPR;a[38RnOaUR(a XPR;a[39RnO0UR(aXPR;a[40RnX4U4v� M� g7f)N)
r�get_tokens_unprocessedrr��stdlib_typesr�Typer��	c99_typesr��c11_atomic_typesr��linux_types)r��text�stack�index�token�values      r�r��#CFamilyLexer.get_tokens_unprocessed�s�����1�1�$�e�D�
 �E�%���}��*�*�u�8I�8I�/I�#�L�L�E��)�)�e�~�~�.E�#�L�L�E��)�)�e�7L�7L�.L�#�L�L�E��.�.�5�<L�<L�3L�#�L�L�E���%�%�E�s�C5C7)r�r�r�r�N))r{)8�__name__�41__module__�__qualname__�__firstlineno__�__doc__�_ws1�_hexpart�_decpart�42_intsuffix�_ident�_namespaced_ident�_comment_single�_comment_multiline�_possible_commentsr
�Preprocrrrrr�Labelrr�Single�	Multilinerr�Affix�Charr�Float�Hex�Bin�Oct�Integerr�Builtinr43r�Reservedr��Functionr	�Escape�PreprocFile�Class�Constant�tokensr�r�r�r�r�r��__static_attributes__�r�r�rrsn���%�D�/�H��H�N�J�E�F�R��.�O�Q��)��(9��?Q�>R�RY�Z��44�'�/�/�5�1�
�7�?�?�G�,�
�D�[�=�
(�
�e�D�k�7�?�?�
3�U�
<�
�D�[�6�
!�
�e�D�k�7�?�?�
3�W�
>���	�/�	/�45�j�$�*�*�j�+�
F�
H��J��
�*�%�
�d�O�
�g�n�n�-�
��!2�!2�3�
"�G�$5�$5�6�/46�4
�J���G��
�����v� >��I�
Q�
�f�l�l�F�K�K����f�k�k�
J�
L���
!�E�
)�H�
4�v�
=��
H�
����,�-�/7�8�:B�C�DJ�L�L�
R���
 �5�
(�8�
3�f�
<�x�
G�$�
N�
��%�&�(0�1�3=�>�?E�|�|�
M�
��
!�F�
*�X�
5��
@�
��&�'�)1�2�4>�?�@F���
N�
�H�
$�z�
1�6�:�:�>�
'�*�
4�f�j�j�A�
 �:�
-�v�z�z�:�
�x�
�*�
,�f�n�n�=�
!�8�,�
�K�(�
+�T�\�\�:�
�T�N�-47�2�A�%� �"�#*�#3�#3�
5�
� �(-�/�07���
>�48�$�X�g�z�%B�K�P�
���.�
�a�49 �!�50#*�
+���&+�-�.5�.>�.>�
@�*�7�+;�+;�<�
�?�51�U�,�52.5�-=�-=�
?�53�,
�L�!��J��
�%�
%�)��&�'�*��%�&�)��'�'�*��54'�'�55*!�!��e�D�k�5��\�#B��m�m�U�4�|�%D��D�k�5��\�#B��D�k�;�0��
��%�
%�)��&�'�*��%�&�)��'�'�*��56'�'�57*���e�D�k�5��\�#B��m�m�U�4�|�%D��D�k�5��\�#B��D�k�;�0�58
1�
�G���K� �;59�@
�L�!��L�!�
�K� �
�k�6�*�	60�
�L�!��L�!�
�+��
�K��)�
�K��(�61��6�6�"�<�=C�]�]�
L�
�6�"�
�f��
�F�O�
62��$�Y�~�
%�d�
*�+@�
@���t��g�o�o�u�T�{� �,�,�g�n�n�>�
?��$�Y�~�
%�d�
*�+@�
@���t��g�o�o�u�T�{� �,�,�g�n�n�>�
?�����)�
 �'�"3�"3�4�
�����0�
�7�?�?�#�
�7�?�?�+�
�G�O�O�V�,�
63�$�W�_�_�g�>�
$�g�o�o�v�>�
&�����@�
�w��	64��T�Z�Z��(�
�$��'��F�O�	65���V�4�
�T�]�]�#��L�!��L�!�	66�{c�F�J8�L�:�I�A�K�67C��-�&r�rc��\rSrSrSrSrS/r/SQr/SQrSr	Sr68S	r\"S69SS9\
4\/\"S
SS9\
R4\/S.rSrSrg)ria�70For C source code with preprocessor directives.71 72Additional options accepted:73 74`stdlibhighlighting`75    Highlight common types found in the C/C++ standard library (e.g. `size_t`).76    (default: ``True``).77 78`c99highlighting`79    Highlight common types found in the C99 standard library (e.g. `int8_t`).80    Actually, this includes all fixed-width integer types.81    (default: ``True``).82 83`c11highlighting`84    Highlight atomic types found in the C11 standard library (e.g. `atomic_bool`).85    (default: ``True``).86 87`platformhighlighting`88    Highlight common types found in the platform SDK headers (e.g. `clockid_t` on Linux).89    (default: ``True``).90�C�c)z*.cz*.hz*.idcz*.x[bp]m)ztext/x-chdrztext/x-csrczimage/x-xbitmapzimage/x-xpixmapz6https://en.wikipedia.org/wiki/C_(programming_language)�皙�����?)�_Alignas�_Alignof�	_Noreturn�_Countof�_Generic�
_Thread_local�_Static_assert�91_Imaginary�countof�noreturn�	imaginary�complexr&r6)�_Bool�_Complex�_Atomic�92_Decimal32�93_Decimal64�_Decimal128)rrc��[R"SU[R5(ag[R"SU[R5(agg)Nz^\s*#include [<"]r"z
^\s*#ifn?def )�re�search�	MULTILINE�r�s r��analyse_text�CLexer.analyse_text;s=��
�9�9�)�4����>�>��
�9�9�%�t�R�\�\�:�:��;r�rN)r�r�r�r�r��name�aliases�	filenames�	mimetypes�url�
version_added�priorityr94rrr�rr:rrr�r�rrs����,�D��e�G�3�I�T�I�95B�C��M��H��_��� '�
(�
�96��^�gl�
m�ov�o{�o{�|��97��F�r�c�.�\rSrSrSrSrSrSS/r/SQrSS	/r	S98r99SrS\"\
R\
\
R\
R\
\
R\
54\/\\"S
SSS9\R&4S\R(4/\"S5\"SSS9\4\R.\R2S4S\S4\"S5/S\"\\5S4\"SSS9\4S\S4S\"\\5S4\/S\R:4\/S\S 4S!\R&4\R.\R>4\"S"5/S#.r S$r!S%r"g&)'riBa�100For C++ source code with preprocessor directives.101 102Additional options accepted:103 104`stdlibhighlighting`105    Highlight common types found in the C/C++ standard library (e.g. `size_t`).106    (default: ``True``).107 108`c99highlighting`109    Highlight common types found in the C99 standard library (e.g. `int8_t`).110    Actually, this includes all fixed-width integer types.111    (default: ``True``).112 113`c11highlighting`114    Highlight atomic types found in the C11 standard library (e.g. `atomic_bool`).115    (default: ``True``).116 117`platformhighlighting`118    Highlight common types found in the platform SDK headers (e.g. `clockid_t` on Linux).119    (default: ``True``).120zC++zhttps://isocpp.org/�cppzc++)z*.cppz*.hppz*.c++z*.h++z*.ccz*.hhz*.cxxz*.hxxz*.Cz*.Hz*.cpz*.CPPz*.tppz*.cppmz*.ixxz*.mxxz
text/x-c++hdrz
text/x-c++srcr!r"z<((?:[LuU]|u8)?R)(")([^\\()\s]{,16})(\()((?:.|\n)*?)(\)\3)("))�virtual_inheritance�uuidof�super�extends�single_inheritance�multiple_inheritance�	interface�121implements�eventreror%r&r'z#__(offload|blockingoffload|outer)\brp)�classrJr6rvrzz(class|concept|typename)(\s+)r7)5�catch�122const_cast�delete�dynamic_cast�explicit�export�friend�mutable�new�operator�private�	protected�public�reinterpret_castrN�123__restrict�static_cast�templater�throw�throwsrf�typeidr�virtual�concept�decltype�noexcept�override�final�	constinit�	consteval�co_await�	co_return�co_yield�requires�import�module�typename�and�and_eq�bitand�bitor�compl�not�not_eq�or�or_eq�xor�xor_eq�contract_assert�pre�postznamespace\b�	namespacez(enum)(\s+)�enumnamezchar(16_t|32_t|8_t)\bz[;{])rvr{zinline\brt)rur{r�rrr�c�x�[R"SU5(ag[R"SU5(agg)Nz#include <[a-z_]+>g�������?zusing namespace g�������?)r6r7r9s r�r:�CppLexer.analyse_text�s1��
�9�9�)�4�0�0��
�9�9�'��.�.��/r�rN)#r�r�r�r�r�r<r@r=r>r?rArBrrr
�	Delimiterrr124rr�Pseudorrrrrrr	rr�r�	Namespacerr:rrr�r�rrBs����,�D�125�C��e�n�G�-�I�!�/�2�I��M��H�126M�
�f�l�l�F�F�,<�,<�f�>N�>N��f�.�.��8�
9�
�127�
�
�c���/�07�0@�0@�
B�4�W�^�^�D�128�
�L�!�
�&�u�
5�w�?�
�
 �
 �$�*�*�f�5�
�$��'��F�O�129�.�x���/L�k�Z�
�	\��130�&�131
'��W�k�2�
�X�g�z�:�J�G��132�$&�w�|�|�4��133�134�k�#3�4�
�'�*�*�+�
�
 �
 �$�.�.�1��K� �	135�_5�F�nr�)r�r6�pygments.lexerrrrrrrr	r136�
pygments.utilr�pygments.tokenrr
rrrrrrr�__all__rrrrr�r��<module>r�sf���137�"�"�"�&�$�$�$��Z�138 ��u&�:�u&�p1�\�1�h]�|�]r�
codekingpro/portable-devtools · Team Ai