HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/r.cpython-311.pyc
�

�;f�����dZddlZddlmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZgd�Zejd��ZGd�de��ZGd	�d
e��ZGd�de��ZdS)
z�
    pygments.lexers.r
    ~~~~~~~~~~~~~~~~~

    Lexers for the R/S languages.

    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Lexer�
RegexLexer�include�
do_insertions)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�
Whitespace)�
RConsoleLexer�SLexer�RdLexerz.*?
c�2�eZdZdZdZddgZdgZdZdZd�Z	d	S)
rz@
    For R console transcripts or R CMD BATCH output files.
    �RConsole�rconsole�routz*.Rout�https://www.r-project.org�c	#�xK�tdi|j��}d}g}t�|��D]�}|���}|�d��s|�d��rH|�t|��dtj	|dd�fgf��||dd�z
}��|r-t||�|����Ed{V��d}g}|���tj
|fV���|r+t||�|����Ed{V��dSdS)Nr�>�+r��)r�options�line_re�finditer�group�
startswith�append�lenr�Promptr�get_tokens_unprocessed�start�Output)�self�text�slexer�current_code_block�
insertions�match�lines       �D/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/r.pyr'z$RConsoleLexer.get_tokens_unprocessed"s������'�'�$�,�'�'�����
��%�%�d�+�+�	:�	:�E��;�;�=�=�D����s�#�#�
:�t���s�';�';�
:��!�!�3�'9�#:�#:�%&����R�a�R��$A�#B�#D�E�E�E�"�d�1�2�2�h�.�"�"�&�$�,�"�F�$A�$A�BT�$U�$U� W� W�W�W�W�W�W�W�W�*,�&�!#�J��k�k�m�m�W�^�T�9�9�9�9�9�
�	O�$��F�9�9�:L�M�M�O�O�
O�
O�
O�
O�
O�
O�
O�
O�
O�	O�	O�N)
�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�url�
version_addedr'rr2r1rrsT���������D��6�"�G��
�I�
%�C��M� O� O� O� O� Or2rc��eZdZdZdZgd�Zgd�Zgd�ZdZdZ	dZ
d	ejfge
e
fgd
efgdejfgdefd
efgdejfde
jjfgdejfdefged��defdedfdedfed��ed��ed��ed��ed��ed��g
de
�d�e
jfed ��d!efd"efgd#ed$fgd%ed$fgd&�Zd'�Zd(S))rz+
    For S, S-plus, and R source code.
    �S)�splus�s�r)z*.Sz*.Rz	.Rhistoryz	.Rprofilez	.Renviron)ztext/S-plusztext/Sztext/x-r-sourceztext/x-rztext/x-Rztext/x-r-historyztext/x-r-profilerz0.10z;`[^`\\]*(?:\\.[^`\\]*)*`|(?:[a-zA-Z]|\.[A-Za-z_.])[\w.]*|\.z#.*$z\[{1,2}|\]{1,2}|\(|\)|;|,zH(if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])z(<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\?z$\*|\+|\^|/|!|%[^%]*%|=|~|\$|@|:{1,3}zm(NULL|NA(_(integer|real|complex|character)_)?|letters|LETTERS|Inf|TRUE|FALSE|NaN|pi|\.\.(\.|[0-9]+))(?![\w.])z(T|F)\bz#0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?z;[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+|\.)([eE][+-]?[0-9]+)?[Li]?�commentsz\s+z\'�
string_squotez\"�
string_dquote�builtin_symbols�
valid_name�numbers�keywords�punctuation�	operators�(z
)\s*(?=\()�
statementsz\{|\}�.z([^\'\\]|\\.)*\'z#popz([^"\\]|\\.)*")rArErHrGrIrDrFrK�rootrBrCc�4�tjd|��rdSdS)Nz[a-z0-9_\])\s]<-(?!-)g)\��(�?)�re�search)r+s r1�analyse_textzSLexer.analyse_text�s&��
�9�-�t�4�4�	��4�	�	r2N)r3r4r5r6r7r8r9�	mimetypesr:r;rEr�Singlerrr
�Reservedr	�Constant�Builtin�Pseudor
�Hexrrr�Functionr�tokensrQrr2r1rrEs����������D�!�!�!�G�E�E�E�I�E�E�E�I�
%�C��M�O�J��g�n�%�
����
�*�;�7�
��
�
�
�
�9�(�C�
4�h�?�
�
��
�
����,�-�
�4�V�Z�@�
K�
�
�	
�
�G�J���
�Z� �
�F�O�,�
�F�O�,��G�%�&�&��G�L�!�!��G�I����G�J����G�M�"�"��G�K� � �
�)�*�
(�
(�
(�$�-�8��G�L�!�!�
�{�#�
�4�L�
�!�&�&�1�
����/�
�B�B�F�H����r2rc
��eZdZdZdZdgZdgZdgZdZdZ	dd	e
jfd
efde
jfde
fd
ejfdejfdefdefgiZdS)raR
    Pygments Lexer for R documentation (Rd) files

    This is a very minimal implementation, highlighting little more
    than the macros. A description of Rd syntax is found in `Writing R
    Extensions <http://cran.r-project.org/doc/manuals/R-exts.html>`_
    and `Parsing Rd files <http://developer.r-project.org/parseRd.pdf>`_.
    �Rd�rdz*.Rdztext/x-r-docz1http://cran.r-project.org/doc/manuals/R-exts.htmlz1.6rMz	\\[\\{}%]z%.*$z\\(?:cr|l?dots|R|tab)\bz
\\[a-zA-Z]+\bz^\s*#(?:ifn?def|endif).*\bz[{}]z[^\\%\n{}]+rLN)r3r4r5r6r7r8r9rRr:r;r�Escaperr
rU�PreprocrrVrrZrr2r1rr�s����������D��f�G���I�� �I�
=�C��M�
	�
�6�=�)�
�g��
'��)9�:�
�w�'�
*�G�O�<�
�d�l�#�
�T�"�
�4�L�
��F�F�Fr2r)r6rO�pygments.lexerrrrr�pygments.tokenrrr	r
rrr
rrr�__all__�compiler rrrrr2r1�<module>rdsp����
�	�	�	�D�D�D�D�D�D�D�D�D�D�D�D�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�1�
0�
0���2�:�g����+O�+O�+O�+O�+O�E�+O�+O�+O�\T�T�T�T�T�Z�T�T�T�n$�$�$�$�$�j�$�$�$�$�$r2