文件操作 - r.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/r.cpython-311.pyc
编辑文件内容
� �E�c) � �� � d Z ddlZddlmZmZmZmZ ddlmZm Z m Z mZmZm Z mZmZmZmZ g d�Z ej d� � Z G d� de� � Z G d � d e� � Z G d� de� � ZdS ) z� pygments.lexers.r ~~~~~~~~~~~~~~~~~ Lexers for the R/S languages. :copyright: Copyright 2006-2022 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 �* � e Zd ZdZdZddgZdgZd� ZdS )r z@ For R console transcripts or R CMD BATCH output files. �RConsole�rconsole�routz*.Routc # �x K � t di | j ��}d}g }t � |� � D ]�}|� � � }|� d� � s|� d� � rH|� t |� � dt j |d d� fgf� � ||dd � z }��|r-t ||� |� � � � E d {V �� d}g }|� � � t j |fV � ��|r+t ||� |� � � � E d {V �� d S d S )N� �>�+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 �3/usr/lib/python3/dist-packages/pygments/lexers/r.pyr&