https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/lexers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/rebol.cpython-310.pyc
o

���a�H�@stdZddlZddlmZmZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZddgZGdd�de�ZGdd�de�ZdS)	z�
    pygments.lexers.rebol
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for the REBOL and related languages.

    :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�Generic�
Whitespace�
RebolLexer�RedLexerc@s@eZdZdZdZdgZgd�ZdgZej	ej
BZdZdd�Z
d	efd
ejdfdefggd
ef�dejdf�dejf�dejdf�dejf�dedf�dedf�dejf�dejf�def�dejdf�dejf�dejf�dejf�d ejf�d!ejf�d"ejf�d#ejf�d$ejf�d%ef�d&ejf�d'ejf�d(ejf�d)ejf�d*ed+f�d,ed-f�d.ed/f�d0ef�d1ejf�d2e
f�d3ejf�d4ejd5f�d6ef�d7efeej fd8efd9ej fded:fgd;efeej fd8efd9ej fded<fd=ed:fgd7ejfeejfd9ejfdejd:fgedejd:fd>ejd:fd?ejd:fgeejfdejd@fdAejfdBejd:fgd7ejfeejfd8ejfd9ejfdejd:fgdCejfdDejd:fgd
ejfdEejfd=ejd:fgd7efeefd8efd9efded:fgd;efeefd8efd9efded<fd=ed:fgdFed<fdGed:fded+fded-fdHefgdI�
Z!dJdK�Z"dLS)Mr
zN
    A `REBOL <http://www.rebol.com/>`_ lexer.

    .. versionadded:: 1.1
    �REBOL�rebol)z*.rz*.r3z*.rebztext/x-rebol�(?:\^\([0-9a-f]{1,4}\)*)ccs��|��}t�d|�r|��tj|fVdSt�d|�r'|��tj|fVdSt�d|�r8|��tj|fVdSt�d|�rI|��t	j
|fVdSt�d|�rZ|��tj|fVdSt�d|�rk|��tj|fVdSt�d|�r{|��t	|fVdSt�d|�r�|��t
|fVdSt�d	|�r�|��t	|fVdSt�d
|�r�|��t	j|fVdSt�d|�r�|��tjj|fVdSt�d|�r�|��tj|fVdSt�d
|�r�|��tj|fVdS|��tj|fVdS)N�.*:$a(native|alias|all|any|as-string|as-binary|bind|bound\?|case|catch|checksum|comment|debase|dehex|exclude|difference|disarm|either|else|enbase|foreach|remove-each|form|free|get|get-env|if|in|intersect|loop|minimum-of|maximum-of|mold|new-line|new-line\?|not|now|prin|print|reduce|compose|construct|repeat|reverse|save|script\?|set|shift|switch|throw|to-hex|trace|try|type\?|union|unique|unless|unprotect|unset|until|use|value\?|while|compress|decompress|secure|open|close|read|read-io|write-io|write|update|query|wait|input\?|exp|log-10|log-2|log-e|square-root|cosine|sine|tangent|arccosine|arcsine|arctangent|protect|lowercase|uppercase|entab|detab|connected\?|browse|launch|stats|get-modes|set-modes|to-local-file|to-rebol-file|encloak|decloak|create-link|do-browser|bind\?|hide|draw|show|size-text|textinfo|offset-to-caret|caret-to-offset|local-request-file|rgb-to-hsv|hsv-to-rgb|crypt-strength\?|dh-make-key|dh-generate-key|dh-compute-key|dsa-make-key|dsa-generate-key|dsa-make-signature|dsa-verify-signature|rsa-make-key|rsa-generate-key|rsa-encrypt)$a4(add|subtract|multiply|divide|remainder|power|and~|or~|xor~|minimum|maximum|negate|complement|absolute|random|head|tail|next|back|skip|at|pick|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|last|path|find|select|make|to|copy\*|insert|remove|change|poke|clear|trim|sort|min|max|abs|cp|copy)$a�(error|source|input|license|help|install|echo|Usage|with|func|throw-on-error|function|does|has|context|probe|\?\?|as-pair|mod|modulo|round|repend|about|set-net|append|join|rejoin|reform|remold|charset|array|replace|move|extract|forskip|forall|alter|first+|also|take|for|forever|dispatch|attempt|what-dir|change-dir|clean-path|list-dir|dirize|rename|split-path|delete|make-dir|delete-dir|in-dir|confirm|dump-obj|upgrade|what|build-tag|process-source|build-markup|decode-cgi|read-cgi|write-user|save-user|set-user-name|protect-system|parse-xml|cvs-date|cvs-version|do-boot|get-net-info|desktop|layout|scroll-para|get-face|alert|set-face|uninstall|unfocus|request-dir|center-face|do-events|net-error|decode-url|parse-header|parse-header-date|parse-email-addrs|import-email|send|build-attach-body|resend|show-popup|hide-popup|open-events|find-key-face|do-face|viewtop|confine|find-window|insert-event-func|remove-event-func|inform|dump-pane|dump-face|flag-face|deflag-face|clear-fields|read-net|vbug|path-thru|read-thru|load-thru|do-thru|launch-thru|load-image|request-download|do-face-alt|set-font|set-para|get-style|set-style|make-face|stylize|choose|hilight-text|hilight-all|unlight-text|focus|scroll-drag|clear-face|reset-face|scroll-face|resize-face|load-stock|load-stock-block|notify|request|flash|request-color|request-pass|request-text|request-list|request-date|request-file|dbug|editor|link-relative-path|emailer|parse-error)$zO(halt|quit|do|load|q|recycle|call|run|ask|parse|view|unview|return|exit|break)$zREBOL$�to-.*z5(\+|-|\*|/|//|\*\*|and|or|xor|=\?|=|==|<>|<|>|<=|>=)$z.*\?$�.*\!$�'.*�#.*�%.*)�group�re�match�startr�
Subheadingr�Builtin�Functionr�	Namespace�	Exception�Headingr�Type�Variable�Instance�Label�	Decorator��lexerr�word�r*�7/usr/lib/python3/dist-packages/pygments/lexers/rebol.py�
word_callback#sV������zRebolLexer.word_callback�[^R]+z
REBOL\s+\[�script�R�\s+�#"�charz#\{[0-9a-f]*\}�2#\{�bin2�64#\{[0-9a-z+/=\s]*\}�"�string�\{�string2�;#+.*\n�;\*+.*\n�;.*\n�%"�
stringFile�%[^(^{")\s\[\]]+�[+-]?([a-z]{1,3})?\$\d+(\.\d+)?�[+-]?\d+\:\d+(\:\d+)?(\.\d+)?zJ\d+[\-/][0-9a-z]+[\-/]\d+(\/\d+\:\d+((\:\d+)?([.\d+]?([+-]?\d+:\d+)?)?)?)?�\d+(\.\d+)+\.\d+�\d+X\d+�#[+-]?\d+(\'\d+)?([.,]\d*)?E[+-]?\d+�[+-]?\d+(\'\d+)?[.,]\d*�[+-]?\d+(\'\d+)?�[\[\]()]� [a-z]+[^(^{"\s:)]*://[^(^{"\s)]*� mailto:[^(^{"@\s)]+@[^(^{"@\s)]+�[^(^{"@\s)]+@[^(^{"@\s)]+�
comment\s"�commentString1�comment\s\{�commentString2�comment\s\[�commentBlock�comment\s[^(\s{"\[]+z/[^(^{")\s/[\]]*z"([^(^{")\s/[\]]+)(?=[:({"\s/\[\]])�
<[\w:.-]*>�<[^(<>\s")]+�tag�
([^(^{")\s]+)�[^(^")]+�[(|)]+�\^.�#pop�	[^(^{})]+�#push�\}�\^."�."�	tagString�
[^(<>\r\n")]+�>�(\d+\.)+�\d+�([01]\s*){8}�\[�\]�[^(\[\]"{)]+�
�rootr.r7r9r>r2rTr_�tupler4rLrNrPcCs,t�d|tj�r
dSt�d|tj�rdSdS)zS
        Check if code contains REBOL header and so it probably not R code
        z^\s*REBOL\s*\[g�?z
\s*REBOL\s*\[g�?N)rr�
IGNORECASE�search)�textr*r*r+�analyse_text�s
�zRebolLexer.analyse_textN)#�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypesrrk�	MULTILINE�flags�	escape_rer,rr�Strongrr	�Charr
�Hex�Special�Preprocrr&�Float�Otherr�Constant�	Attribute�Tag�Escape�tokensrnr*r*r*r+r
sW
��
��
�����	�
�
��
������������������� �
!�"�%��	
�

�

�
�
�
���	��rc@sZeZdZdZdZddgZddgZddgZej	ej
BZd	Zd
d�Z
defd
ejdfdejdfdefggdef�dejdf�dejf�dejdf�dejf�deejeje�f�dedf�dedf�dejf�dejf�def�d ejd!f�d"ejf�d#ejf�d$ejf�d%ejf�d&ej f�d'ej f�d(ejf�d)ejf�d*ef�d+ejf�d,ejf�d-ejf�d.ejf�d/ed0f�d1ed2f�d3ed4f�d5ef�d6ej!f�d7e
f�d8ej"f�d9ej"d:f�d;ef�d<efeej#fd=efd>ej#fded?fgd@efeej#fd=efd>ej#fdedAfdBed?fgd<ejfeejfd>ejfdejd?fgedejd?fdCejd?fdDejd?fgeej"fdej"dEfdFej"fdGej"d?fgd<ej"feej"fd=ej"fd>ej"fdej"d?fgdHej fdIej d?fgdejfdJejfdBejd?fgd<efeefd=efd>efded?fgd@efeefd=efd>efdedAfdBed?fgdKedAfdLed?fded0fded2fdMefgdN�
Z$dOS)PrzX
    A `Red-language <http://www.red-lang.org/>`_ lexer.

    .. versionadded:: 2.0
    �Red�redz
red/systemz*.redz*.redsz
text/x-redztext/x-red-systemrccs�|��}t�d|�r|��tj|fVdSt�d|�r'|��tj|fVdSt�d|�r8|��tj|fVdSt�d|�rJ|��tjj	|fVdSt�d|�r[|��t
j|fVdSt�d|�rl|��tj|fVdSt�d|�r||��t
|fVdSt�d|�r�|��t
j|fVdSt�d	|�r�|��t
|fVdSt�d
|�r�|��t
|fVdSt�d|�r�|��t
j|fVdSt�d|�r�|��tjj|fVdSt�d
|�r�|��tj|fVdSt�d|�r�|��tj|fVdSt�d|��r|��tj|fVdS|��tj|fVdS)Nra(if|unless|either|any|all|while|until|loop|repeat|foreach|forall|func|function|does|has|switch|case|reduce|compose|get|set|print|prin|equal\?|not-equal\?|strict-equal\?|lesser\?|greater\?|lesser-or-equal\?|greater-or-equal\?|same\?|not|type\?|stats|bind|union|replace|charset|routine)$af(make|random|reflect|to|form|mold|absolute|add|divide|multiply|negate|power|remainder|round|subtract|even\?|odd\?|and~|complement|or~|xor~|append|at|back|change|clear|copy|find|head|head\?|index\?|insert|length\?|next|pick|poke|remove|reverse|select|sort|skip|swap|tail|tail\?|take|trim|create|close|delete|modify|open|open\?|query|read|rename|update|write)$z`(yes|on|no|off|true|false|tab|cr|lf|newline|escape|slash|sp|space|null|none|crlf|dot|null-byte)$ze(#system-global|#include|#enum|#define|#either|#if|#import|#export|#switch|#default|#get-definition)$z�(system|halt|quit|quit-return|do|load|q|recycle|call|run|ask|parse|raise-error|return|exit|break|alias|push|pop|probe|\?\?|spec-of|body-of|quote|forever)$z�(action\?|block\?|char\?|datatype\?|file\?|function\?|get-path\?|zero\?|get-word\?|integer\?|issue\?|lit-path\?|lit-word\?|logic\?|native\?|op\?|paren\?|path\?|refinement\?|set-path\?|set-word\?|string\?|unset\?|any-struct\?|none\?|word\?|any-series\?)$z(JNICALL|stdcall|cdecl|infix)$rzN(\+|-\*\*|-|\*\*|//|/|\*|and|or|xor|=\?|===|==|=|<>|<=|>=|<<<|>>>|<<|>>|<|>%)$rrrrz:.*)rrrrrrrrr�Pseudorrr rr"r#r$r%r&r'r*r*r+r,s^��������zRedLexer.word_callbackr-zRed/System\s+\[r.zRed\s+\[r/r0r1r2z#\{[0-9a-f\s]*\}r3r4r5z$([0-9a-f]+)(h)((\s)|(?=[\[\]{}"()]))r6r7r8r9r:r;r<r=r>r?r@rAzH\d+[\-/][0-9a-z]+[\-/]\d+(/\d+:\d+((:\d+)?([\.\d+]?([+-]?\d+:\d+)?)?)?)?rBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQz/[^(^{^")\s/[\]]*z#([^(^{^")\s/[\]]+)(?=[:({"\s/\[\]])rRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhN)%rorprqrrrsrtrurvrrkrwrxryr,rrrzrr	r{r
r|rrr#rr}r~r&rr�rr�r�r�r�r�r*r*r*r+r�s&8

��
��
�����	�
���

������������������� �!�"�
#�$�'��	
�

�

�
�
�
���	�
�)rrr�pygments.lexerrr�pygments.tokenrrrrrr	r
rr�__all__r
rr*r*r*r+�<module>s
,c

https://t.me/RX1948 - 2025