File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/func.cpython-311.pyc
�
�;ft � �l � d Z ddlmZmZmZ ddlmZmZmZm Z m
Z
mZmZm
Z
mZ dgZ G d� de� � ZdS )z�
pygments.lexers.func
~~~~~~~~~~~~~~~~~~~~
Lexers for FunC.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�include�words) �Text�Comment�Operator�Keyword�Name�String�Number�
Whitespace�Punctuation� FuncLexerc � � e Zd ZdZdZddgZddgZdZdZd Z d
e
fde
f ed� � ed
� � ed� � ed� � ed� � ed� � ed� � ed� � defg e
ddd�� � ef e
ddd�� � ef e
ddd�� � ej fgdedfg ed
� � de
fdefdefd ed!fgd"efgd#efgd$ej fd%ej d&fgd'ej fd%ej d(fd)ej d!fd*ej fg e
d+dd,�� � ej f e
d-dd�� � ej fge ej fge d.z ej fgd/�Zd0S )1r z
For FunC source code.
�FunC�func�fcz*.fcz*.funcz*https://docs.ton.org/develop/func/overview� zJ(?!")(`([^`]+)`|((?=_)_|(?=\{)\{|(?=\})\}|(?![_`{}]))([^;,\[\]\(\)\s~.]+))z\nz\s+�keywords�strings�
directives�numeric�comments�storage� functions� variablesz[.;(),\[\]~{}])+z<=>z>=z<=z!=z==z^>>z~>>z>>z<<z/%z^%z~%z^/z~/z+=z-=z*=z/=z~/=z^/=z%=z^%=z<<=z>>=z~>>=z^>>=z&=z|=z^=�^�=�~�/�%�-�*�+�>�<�&�|�:�?z(?<=\s)z(?=\s))�prefix�suffix)�if�ifnot�else�elseif� elseifnot�while�do�until�repeat�return�impure� method_id�forall�asm�inline�
inline_refz\b)�true�falsez#include|#pragma� directivezversion|not-versionz-(>=|<=|=|>|<|\^)?([0-9]+)(.[0-9]+)?(.[0-9]+)?�;z#popz\"([^\n\"]+)\"[Hhcusa]?z?\b(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])z
;;([^\n]*)z\{-�commentz[^-}{]+z#pushz-\}z[-}{])�var�int�slice�tuple�cell�builder�cont�_z(?=[\s\(\),\[\]]))�global�constz(?=[\(]))�rootr r r? r r r rA r r r N)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames�url�
version_added�
identifierr
r r r r r �Constantr r r r �
Singleline� Multiline�Typer
�Variable�Function�tokens� � �G/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/func.pyr r s� � � � � � �� � �D��t�n�G���"�I�
6�C��M� _�J� �J��
�Z� ��G�J����G�I����G�L�!�!��G�I����G�J����G�I����G�K� � ��G�K� � �
��,�
� �U� )� 2<�I�
O� O� O� �
� �U� 9�
BG�u�V� V� V� �
� �U�$�U�5�
A�
A�
A�7�CS�T�!
�&