�
|�e � �T � d Z ddlmZmZ ddlmZmZmZmZm Z m
Z
dgZ G d� de� Zy)z�
pygments.lexers.capnproto
~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Cap'n Proto schema language.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�default)�Text�Comment�Keyword�Name�Literal�
Whitespace�CapnProtoLexerc �L � e Zd ZdZdZdZdgZdgZdej fde
j fded fd
e
j dfde
j d
fdefde
fdefdefg de
j fde
j df ed� gde
j fde
j dfde
j df ed� gdefdedf ed� gdefdedfdedf ed� gde
j fde
j df ed� gde
j fde
j dfde
j df ed� gd�Zy)r z<
For Cap'n Proto source.
.. versionadded:: 2.2
zCap'n Protozhttps://capnproto.orgz*.capnp�capnpz#.*?$z
@[0-9a-zA-Z]*�=�
expression�:�typez\$�
annotationza(struct|enum|interface|union|import|using|const|annotation|extends|in|of|on|as|with|from|fixed)\bz[\w.]+z
[^#@=:$\w\s]+z\s+z[^][=;,(){}$]+z[\[(]� parentypez#popz [^][;()]+z#pushz[])]z
[^][;,(){}$]+�parenexpz[^][;,(){}=:]+�annexp)�rootr r r r r r N)�__name__�
__module__�__qualname__�__doc__�name�url� filenames�aliasesr �Singler � Decoratorr �Class� Attributer r r
r �tokens� � �;/usr/lib/python3/dist-packages/pygments/lexers/capnproto.pyr r s� � ��
�D�
!�C���I��i�G� �w�~�~�&�
�t�~�~�.�
�7�L�)�
�4�:�:�v�&�
�D�N�N�L�1�7�
�
� ���
�t�$�
�Z� �
� ��
�
�+�
�t�z�z�;�/��F�O�
� �4�:�:�&�
�t�z�z�7�+�
�d�j�j�&�)��F�O�
� �w�'�
�w�
�+��F�O�
� �7�#�
�w��(�
�g�v�&��F�O�
� ����/�
�t�~�~�x�0��F�O�
� �4�>�>�*�
�t�~�~�w�/�
�d�n�n�f�-��F�O�
�S/�Fr% N)
r �pygments.lexerr r �pygments.tokenr r r r r r
�__all__r r$ r% r& |