File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/futhark.cpython-310.pyc
o
���a� � @ sx d Z ddlZddlmZmZ ddlmZmZmZm Z m
Z
mZmZm
Z
mZ ddlmZ dgZe�d�ZG dd� de�ZdS ) z�
pygments.lexers.futhark
~~~~~~~~~~~~~~~~~~~~~~~
Lexer for the Futhark language
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
RegexLexer�bygroups) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�
Whitespace)� unistring�FutharkLexerz.*?
c @ s� e Zd ZdZdZdgZdgZdgZej ej
B ZdZdZ
dZd Zd
d�e� ZdZd
ejfdefdefdd�e� ejfdd�ee
� ejfdejfdeef efdefdefdefde ejfde ejfde ejfde ejfde ejfde ej fde ej!fde"j#dfde"d fd!ejfdej$fgd"e"j#d#fde"j%d$fde"j#d#fgd%e"fde"j%d$fde"d#fgd&e"j%d#fd'e&j' d( e"j%d#fd�e�e"j%d#fd)e"j%d#fd*e"j%d#fd+e"j%d#fd,e(ee"j%�d#fgd-�Z)d.S )/r z4
A Futhark lexer
.. versionadded:: 2.8
�Futhark�futharkz*.futztext/x-futhark)
�i8�i16�i32�i64�u8�u16�u32�u64�f32�f64)�bool)�if�then�else�let�loop�in�with�type�val�entry�for�while�do�case�match�include�import�module�open�local�assert�_)�NUL�SOHz[SE]TX�EOT�ENQ�ACK�BEL�BS�HT�LF�VT�FF�CRzS[OI]�DLEzDC[1-4]�NAK�SYN�ETB�CAN�EM�SUB�ESCz[FGRU]S�SP�DELz(%s)?�|z[a-zA-Z_][a-zA-Z_0-9']*z--(.*?)$z\s+z\(\)z\b(%s)(?!\')\bz#\[([a-zA-Z_\(\) ]*)\]z!?(%s\.)*%sz\\z[-+/%=!><|&*^][-+/%=!><|&*^.]*z[][(),:;`{}]z40[xX]_*[\da-fA-F](_*[\da-fA-F])*_*[pP][+-]?\d(_*\d)*zR0[xX]_*[\da-fA-F](_*[\da-fA-F])*\.[\da-fA-F](_*[\da-fA-F])*(_*[pP][+-]?\d(_*\d)*)?z\d(_*\d)*_*[eE][+-]?\d(_*\d)*z+\d(_*\d)*\.\d(_*\d)*(_*[eE][+-]?\d(_*\d)*)?z0[bB]_*[01](_*[01])*z 0[xX]_*[\da-fA-F](_*[\da-fA-F])*z \d(_*\d)*�'� character�"�stringz\[[a-zA-Z_\d]*\]z[^\\']'z#pop�escapez[^\\"]+z[abfnrtv"\'&\\]z\^[][z@^_]zo[0-7]+zx[\da-fA-F]+z\d+z (\s+)(\\))�rootrJ rL rM N)*�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re� MULTILINE�UNICODE�flags� num_types�other_types�reserved�ascii�join�num_postfix�
identifier_rer �Singler r r �Reserved�Type�Preprocr r r
�Float�Bin�Hex�Integerr �Char�Builtin�Escape�uni�Lur �tokens� rp rp �9/usr/lib/python3/dist-packages/pygments/lexers/futhark.pyr st ���
�
#
�
�
�
�)rR rW �pygments.lexerr r �pygments.tokenr r r r r r r
r r �pygmentsr
rm �__all__�compile�line_rer rp rp rp rq �<module> s
,