HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/r.cpython-310.pyc
o

;jM�@s�dZddlZddlmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZgd�Ze�d�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZdS)
z�
    pygments.lexers.r
    ~~~~~~~~~~~~~~~~~

    Lexers for the R/S languages.

    :copyright: Copyright 2006-present 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@s6eZdZdZdZddgZdgZdZdZdZ	d	d
�Z
dS)rz@
    For R console transcripts or R CMD BATCH output files.
    ZRConsoleZrconsoleZroutz*.Rout�https://www.r-project.org�z"rconsole/r-console-transcript.Routc	cs��tdi|j��}d}g}t�|�D]E}|��}|�d�s"|�d�r=|�t|�dtj	|dd�fgf�||dd�7}q|rNt
||�|��EdHd}g}|��tj
|fVq|rgt
||�|��EdHdSdS)Nr�>�+r��)r�options�line_re�finditer�group�
startswith�append�lenrZPromptr�get_tokens_unprocessed�startZOutput)�self�textZslexerZcurrent_code_blockZ
insertions�match�linerr�E/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/r.pyr #s.�
�

�
��z$RConsoleLexer.get_tokens_unprocessedN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�url�
version_addedZ_exampler rrrr&rsrc@seZdZdZdZgd�Zgd�Zgd�ZdZdZ	dZ
d	ejfge
e
fgd
e
�d�e
jfgdefgd
ejfgdefdefgdejfde
jjfgdejfdefged�defdedfdedfed�ed�ed�ed�ed�ed�ed �ged!�d"efd#efgd$ed%fgd&ed%fgd'�Zd(d)�Zd*S)+rz+
    For S, S-plus, and R source code.
    �S)Zsplus�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
)\s*(?=\()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�keywords�
function_name�
valid_name�numbers�punctuation�	operators�
statementsz\{|\}�.z([^\'\\]|\\.)*\'z#popz([^"\\]|\\.)*")r4r:r9r<r8r=r7r;r>�rootr5r6cCst�d|�rdSdS)Nz[a-z0-9_\])\s]<-(?!-)g)\��(�?)�re�search)r#rrr&�analyse_text�s�zSLexer.analyse_textN)r'r(r)r*r+r,r-�	mimetypesr.r/r:r�Singler
ZFunctionr
r	ZReservedr�Constant�BuiltinZPseudorZHexrrrr�tokensrCrrrr&rFsp��������
�	�������Grc
@sneZdZdZdZdgZdgZdgZdZdZ	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>`_.
    ZRdZrdz*.Rdztext/x-r-docz1http://cran.r-project.org/doc/manuals/R-exts.htmlz1.6r@z	\\[\\{}%]z%.*$z\\(?:cr|l?dots|R|tab)\bz
\\[a-zA-Z]+\bz^\s*#(?:ifn?def|endif).*\bz[{}]z[^\\%\n{}]+r?N)r'r(r)r*r+r,r-rDr.r/rZEscaperr	rFZPreprocr
rGrrHrrrr&r�s&��r)r*rAZpygments.lexerrrrrZpygments.tokenrrrr	r
rrr
rr�__all__�compilerrrrrrrr&�<module>s
0
/Z