File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/capnproto.cpython-310.pyc
o
���a� � @ sV d Z ddlZddlmZmZ ddlmZmZmZm Z m
Z
mZ dgZG dd� de�Z
dS )z�
pygments.lexers.capnproto
~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Cap'n Proto schema language.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
RegexLexer�default)�Text�Comment�Keyword�Name�Literal�
Whitespace�CapnProtoLexerc @ s( e Zd ZdZdZdgZdgZejej B Z
dejfde
jfdedfd e
jd
fde
jdfd
efde
fdefdefg de
jfde
jdfed�gde
jfde
jdfde
jdfed�gdefdedfed�gdefdedfdedfed�gde
jfde
jdfed�gde
jfde
jdfde
jdfed�gd�ZdS )r
zW
For `Cap'n Proto <https://capnproto.org>`_ source.
.. versionadded:: 2.2
zCap'n Protoz*.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� filenames�aliases�re� MULTILINE�UNICODE�flagsr �Singler � Decoratorr �Class� Attributer r r r �tokens� r% r% �;/usr/lib/python3/dist-packages/pygments/lexers/capnproto.pyr
s\
��
�
���
�
�
�)r r �pygments.lexerr r �pygments.tokenr r r r r r �__all__r
r% r% r% r&