| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼaJ � @ s� d dl Z d dlmZmZmZmZmZmZmZ d dl m
Z
mZmZm
Z
mZmZmZmZmZ g d�Ze �d�ZG dd� de�ZG dd � d e�Zd
d� Zdd
d�ZG dd� de�ZG dd� de�ZdS )� N)�Lexer�
RegexLexer�bygroups�words�
do_insertions�include�default) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic)�ErlangLexer�ErlangShellLexer�ElixirConsoleLexer�ElixirLexerz.*?
c @ s< e Zd ZdZdgZg d�ZdgZdZdZdZ dZ
d Zd
ZdZ
dZd
ZdZde
d e d e d e d Zde d e d ZdZdefdefeedd�efeedd�ejfee
dd�ejfdedfe efdedfdejfdejfde d eej e�fd!e d" eej!ee�fd#e d$ e"j#fd%e"j#fd&e"j$fd'efeej%feefd(e ej&fd)e d* ej'fd+e d, e d- ejfd.ej(fd/ed0fgeej)fded1fd2ej*fd3efd4efgd5e d eej+eeej&�d1fd6e d eej+eeej�d1feej+d1fge,d7�d8ed9fd:ed9fd;ed1fge,d7�d<ed1fd=ed1fgd>�Z-d?S )@r ZErlangZerlang)z*.erlz*.hrlz*.esz *.escriptz
text/x-erlang)�afterZbegin�case�catch�cond�endZfun�ifZletZof�query�receive�try�when){�absZappend_elementZapplyZatom_to_listZbinary_to_listZbitstring_to_listZbinary_to_termZbit_sizeZbump_reductionsZ byte_sizeZcancel_timerZcheck_process_codeZ
delete_moduleZ demonitorZdisconnect_nodeZdisplay�elementZerase�exit�floatZ
float_to_listZfun_infoZfun_to_listZfunction_exportedZgarbage_collect�getZget_keysZgroup_leader�hashZhdZinteger_to_listZiolist_to_binaryZiolist_sizeZis_atomZ is_binaryZis_bitstringZ
is_boolean�
is_builtinZis_floatZis_function�
is_integerZis_listZ is_numberZis_pidZis_portZis_process_aliveZ is_recordZis_referenceZis_tuple�length�linkZlist_to_atomZlist_to_binaryZlist_to_bitstringZlist_to_existing_atomZ
list_to_floatZlist_to_integerZlist_to_pidZ
list_to_tuple�load_moduleZlocaltime_to_universaltimeZ
make_tupleZmd5Z md5_finalZ
md5_updateZmemoryZ
module_loadedZmonitorZmonitor_nodeZnodeZnodesZ open_portZphashZphash2Zpid_to_listZ
port_closeZport_commandZport_connectZport_controlZ port_callZ port_infoZport_to_listZprocess_displayZprocess_flagZprocess_infoZpurge_moduleZputZ
read_timerZref_to_list�registerZresume_process�round�sendZ
send_afterZsend_nosuspendZ
set_cookieZ
setelement�sizeZspawnZ
spawn_linkZ
spawn_monitorZ spawn_optZsplit_binaryZstart_timerZ
statisticsZsuspend_processZsystem_flagZsystem_infoZsystem_monitorZsystem_profileZterm_to_binary�tlZtraceZtrace_deliveredZ
trace_infoZ
trace_patternZtrunc�
tuple_sizeZ
tuple_to_listZuniversaltime_to_localtime�unlinkZ
unregisterZwhereisz1(\+\+?|--?|\*|/|<|>|/=|=:=|=/=|=<|>=|==?|<-|!|\?))�andZandalsoZbandZbnotZborZbslZbsrZbxorZdiv�not�or�orelseZrem�xorz(?:[a-z]\w*|'[^\n']*[^\\]')z
(?:[A-Z_]\w*)z[bdefnrstv\'"\\]z[0-7][0-7]?[0-7]?z%(?:x[0-9a-fA-F]{2}|x\{[0-9a-fA-F]+\})z
\^[a-zA-Z]z(?:\\(?:�|z))z(?:�)z(?:[2-9]|[12][0-9]|3[0-6])�\s+z%.*\nz\b)�suffixz^-� directive�"�string�<<�>>�(z)(:)z
(?:^|(?<=:))(z
)(\s*)(\()z[+-]?z
#[0-9a-zA-Z]+z[+-]?\d+z[+-]?\d+.\d+z[]\[:_@\".{}()|;,]z\?z\$(?:z|\\[ %]|[^\\])�#z(:?\.z)?z\A#!.+\n�#\{�map_key�#popz~[0-9.*]*[~#+BPWXb-ginpswx]z[^"\\~]+�~z(define)(\s*)(\()(z(record)(\s*)(\()(�root�=>�map_valz:=�\}�,�(?=\}))rF r= r; rC rH N).�__name__�
__module__�__qualname__�name�aliases� filenames� mimetypes�keywords�builtinsZ operatorsZword_operatorsZatom_reZvariable_reZesc_char_reZesc_octal_reZ
esc_hex_reZesc_ctrl_reZ escape_reZmacro_reZbase_rer r
r r r
�Builtinr �Wordr r ZLabelr � NamespaceZFunctionr �Integer�FloatZVariable�Constant�CharZHashbang�Escape�Interpol�Entityr �tokens� r` r` �:/usr/lib/python3.9/site-packages/pygments/lexers/erlang.pyr s� $
�� �
�
�
����r c @ s4 e Zd ZdZdgZdgZdgZe�d�Z dd� Z
dS ) r zErlang erl sessionZerlz*.erl-shztext/x-erl-shellsessionz(?:\([\w@_.]+\))?\d+>(?=\s|\Z)c c s� t f i | j��}d}g }t�|�D ]�}|�� }| j�|�}|d ur�|�� }|�t |�dt
j|d |� fgf� |||d � 7 }q"|r�t||�
|��E d H d}g }|�d�r�|�� t
j|fV q"|�� t
j|fV q"|r�t||�
|��E d H d S )N� r �*)r �options�line_re�finditer�group�
_prompt_re�matchr �append�lenr �Promptr �get_tokens_unprocessed�
startswith�startZ Traceback�Output) �self�textZerlexer�curcode�
insertionsri �line�mr r` r` ra rm � s2
��
�z'ErlangShellLexer.get_tokens_unprocessedN)rL rM rN rO rP rQ rR �re�compilerh rm r` r` r` ra r � s
r c C sD i }d|f |ft d�d|fd|f t|�dft d�g|d| <