Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
r.cpython-313.pyc65 linesDownload Raw Back to __pycache__
1�

2�jM����SrSSKrSSKJrJrJrJr SSKJrJ	r	J3r4JrJrJ
r
JrJrJrJr /SQr\R&"S5r"SS\5r"S	S5\5r"SS\5rg)
z�6pygments.lexers.r7~~~~~~~~~~~~~~~~~8 9Lexers for the R/S languages.10 11:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.12:license: BSD, see LICENSE for details.13�N)�Lexer�14RegexLexer�include�
do_insertions)15�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�16Whitespace)�
RConsoleLexer�SLexer�RdLexerz.*?17c�<�\rSrSrSrSrSS/rS/rSrSr	S	r18S19rSrg)
r�z820For R console transcripts or R CMD BATCH output files.21�RConsole�rconsole�routz*.Rout�https://www.r-project.org�z"rconsole/r-console-transcript.Routc	#�^# �[S0URD6nSn/n[RU5H�nUR	5nURS5(dURS5(a:UR
[U5S[RUSS4/45 X6SS-
nMyU(a&[XBRU55Shv�N Sn/nUR5[RU4v� M� U(a#[XBRU55Shv�N ggNZN7f)Nr�>�+r��)r�options�line_re�finditer�group�22startswith�append�lenr�Promptr�get_tokens_unprocessed�start�Output)�self�text�slexer�current_code_block�23insertions�match�lines       �WD:\code\apps\devtools\python\user_packages\Python313\site-packages\pygments/lexers/r.pyr(�$RConsoleLexer.get_tokens_unprocessed#s*����'�$�,�,�'�����24��%�%�d�+�E��;�;�=�D����s�#�#�t���s�';�';��!�!�3�'9�#:�%&�����R�a��$A�#B�#D�E�"�1�2�h�.�"�&�,�"�$A�$A�BT�$U� W�W�W�*,�&�!#�J��k�k�m�W�^�^�T�9�9�',�0�$��9�9�:L�M�O�
O�
O��W�
O�s%�CD-�D)�AD-�"D+�#D-�+D-rN)
�__name__�25__module__�__qualname__�__firstlineno__�__doc__�name�aliases�	filenames�url�
version_added�_exampler(�__static_attributes__r�r2rrs4����D��6�"�G��26�I�27%�C��M�3�H� Or@rc���\rSrSrSrSr/SQr/SQr/SQrSr	Sr28S	rS29\R4/\\4/S\S3\R4/S
\4/S\R$4/S\4S\4/S\R(4S\R*R,4/S\R04S\4/\"S5S\4S\S4S\S4\"S5\"S5\"S5\"S5\"S5\"S 5\"S!5/\"S"5S#\4S$\4/S%\S&4/S'\S&4/S(.rS)rS*rg+),r�Fz#30For S, S-plus, and R source code.31�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#.*$�(z32)\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�33valid_name�numbers�punctuation�	operators�34statementsz\{|\}�.z([^\'\\]|\\.)*\'z#popz([^"\\]|\\.)*")rHrNrMrPrLrQrKrOrR�rootrIrJc�>�[R"SU5(agg)Nz[a-z0-9_\])\s]<-(?!-)g)\���(�?)�re�search)r,s r2�analyse_text�SLexer.analyse_text�s��
�9�9�-�t�4�4��5r@rN) r4r5r6r7r8r9r:r;�	mimetypesr<r=rNr�Singler�Functionrr35�Reservedr	�Constant�Builtin�Pseudor
�Hexrrrr�tokensrXr?rr@r2rrFs�����D�!�G�E�I�E�I�36%�C��M�O�J��g�n�n�%�37����38��*��Z�
(�$�-�-�8�39�*�;�7�40��
�
�
�
�41�=�h�G�
4�h�?�42�43��
�
�
�����,�,�-�44�4�V�Z�Z�@�
K�
�
�	45�
�J��
�Z� �
�F�O�,�
�F�O�,��%�&��J���O�$��L�!��I���M�"��K� �
46� 
�L�!�
�{�#�
�4�L�
47�!�&�&�1�48����/�49�EE�F�Nr@rc50��\rSrSrSrSrS/rS/rS/rSr	Sr51S	S52\R4S\
4S\R4S
\4S\
R 4S\R$4S\4S\4/0rSrg)r�a:53Pygments Lexer for R documentation (Rd) files54 55This is a very minimal implementation, highlighting little more56than the macros. A description of Rd syntax is found in `Writing R57Extensions <http://cran.r-project.org/doc/manuals/R-exts.html>`_58and `Parsing Rd files <http://developer.r-project.org/parseRd.pdf>`_.59�Rd�rdz*.Rdztext/x-r-docz1http://cran.r-project.org/doc/manuals/R-exts.htmlz1.6rTz	\\[\\{}%]z%.*$z\\(?:cr|l?dots|R|tab)\bz
\\[a-zA-Z]+\bz^\s*#(?:ifn?def|endif).*\bz[{}]z[^\\%\n{}]+rSrN)r4r5r6r7r8r9r:r;rZr<r=r�Escaperr60r^�Preprocrr_rrbr?rr@r2rr�s�����D��f�G���I�� �I�61=�C��M�62	�
�6�=�=�)�
�g��
'��)9�)9�:�
�w�'�
*�G�O�O�<�
�d�l�l�#�
�T�"�
�4�L�63��Fr@r)r8rV�pygments.lexerrrrr�pygments.tokenrrr	r64rrr
rrr�__all__�compiler!rrrrr@r2�<module>rmse���65�D�D�-�-�-�1���:�:�g���,O�E�,O�^W�Z�W�t$�j�$r@
codekingpro/portable-devtools · Team Ai