Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/r.cpython-39.pyc
Ðазад
a a�hJ � @ s� d Z ddlZddlmZmZmZmZ ddlmZm Z m Z mZmZm Z mZmZmZmZ g d�Ze�d�ZG dd� de�ZG d d � d e�ZG dd� de�ZdS ) z� pygments.lexers.r ~~~~~~~~~~~~~~~~~ Lexers for the R/S languages. :copyright: Copyright 2006-2025 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 @ s6 e Zd ZdZdZddgZdgZdZdZdZ d d � Z dS )r z@ For R console transcripts or R CMD BATCH output files. �RConsole�rconsole�routz*.Rout�https://www.r-project.org� z"rconsole/r-console-transcript.Routc c s� t f i | j��}d}g }t�|�D ]�}|�� }|�d�sB|�d�rx|�t|�dtj |d d� fgf� ||dd � 7 }q"|r�t ||�|��E d H d}g }|�� tj |fV q"|r�t ||�|��E d H d S )Nr �>�+r � )r �options�line_re�finditer�group� startswith�append�lenr �Promptr �get_tokens_unprocessed�start�Output)�self�textZslexerZcurrent_code_block� insertions�match�line� r+ ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pygments/lexers/r.pyr# # s* � � �z$RConsoleLexer.get_tokens_unprocessedN)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames�url� version_added�_exampler# r+ r+ r+ r, r s r c @ s e Zd ZdZdZg d�Zg d�Zg d�ZdZdZ dZ d ejfge e fgd e � d�e jfgdefgd ejfgdefdefgdejfde jjfgdejfdefged�defdedfdedfed�ed�ed�ed�ed�ed�ed �ged!�d"efd#efgd$ed%fgd&ed%fgd'�Zd(d)� Zd*S )+r z+ 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-profiler z0.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([^"\\]|\\.)*")r<