+
    TBiJ                         R t ^ RIt^ RIHtHtHtHt ^ RIHtH	t	H
t
HtHtHtHtHtHtHt . ROt]P&                  ! R4      t ! R R]4      t ! R	 R]4      t ! R
 R]4      tR# )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                   H   a  ] tR t^t o RtRtRR.tR.tRtRt	Rt
R	 tR
tV tR# )r   z8
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              #    "   \        R/ V P                  B pR p. p\        P                  V4       F  pVP	                  4       pVP                  R4      '       g   VP                  R4      '       dG   VP                  \        V4      ^ \        P                  VR,          3.34       W6R,          ,          pK  V'       d'   \        WBP                  V4      4       Rj  xL
  R p. pVP                  4       \        P                  V3x  K  	  V'       d%   \        WBP                  V4      4       Rj  xL
  R# R#  L] L
5i)r   >+:N   N:r   NNN )r   optionsline_refinditergroup
startswithappendlenr   Promptr   get_tokens_unprocessedstartOutput)selftextslexercurrent_code_block
insertionsmatchlines   &&     6/usr/lib/python3.14/site-packages/pygments/lexers/r.pyr&   $RConsoleLexer.get_tokens_unprocessed#   s&    '$,,'
%%d+E;;=Ds##ts';'; !!3'9#:%&R$A#B#D E"2h." &,"$A$ABT$U W W W *,&!#JkkmW^^T99' ,0 $99:LMO O O WOs7   A/D?2AD? D?D;6D?D?2D=3	D?=D?r   N)__name__
__module____qualname____firstlineno____doc__namealiases	filenamesurlversion_added_exampler&   __static_attributes____classdictcell____classdict__s   @r0   r   r      s=      D6"G
I
%CM3H O  O    c                     a  ] tR t^Ft o RtRt. R(Ot. R)Ot. R*OtRt	Rt
RtRR]P                  3.R]]3.R	R
] R2]P                  3.RR]3.RR]P$                  3.RR]3R]3.RR]P(                  3R]P*                  P,                  3.RR]P0                  3R]3.R]! R4      R]3R]R3R]R3]! R4      ]! R4      ]! R	4      ]! R4      ]! R4      ]! R4      ]! R4      .R]! R4      R ]3R!]3.RR"]R#3.RR$]R#3./tR% tR&tV t R'# )+r   z#
For S, S-plus, and R source code.
Sr   z0.10z;`[^`\\]*(?:\\.[^`\\]*)*`|(?:[a-zA-Z]|\.[A-Za-z_.])[\w.]*|\.commentsz#.*$
valid_namefunction_name(z
)\s*(?=\()punctuationz\[{1,2}|\]{1,2}|\(|\)|;|,keywordszH(if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])	operatorsz,<<?-|->>?|-|==|<=|>=|\|>|<|>|&&?|!=|\|\|?|\?z$\*|\+|\^|/|!|%[^%]*%|=|~|\$|@|:{1,3}builtin_symbolszm(NULL|NA(_(integer|real|complex|character)_)?|letters|LETTERS|Inf|TRUE|FALSE|NaN|pi|\.\.(\.|[0-9]+))(?![\w.])z(T|F)\bnumbersz#0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?z;[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+|\.)([eE][+-]?[0-9]+)?[Li]?
statementsz\s+z\'string_squotez\"string_dquoterootz\{|\}.z([^\'\\]|\\.)*\'z#popz([^"\\]|\\.)*"c                D    \         P                  ! R V 4      '       d   R# R# )z[a-z0-9_\])\s]<-(?!-)g)\(?N)research)r*   s   &r0   analyse_textSLexer.analyse_text   s    99-t44 5rA   r   N)splussr)z*.Sz*.Rz	.Rhistoryz	.Rprofilez	.Renviron)ztext/S-plusztext/Sztext/x-r-sourceztext/x-rztext/x-Rztext/x-r-historyztext/x-r-profile)!r2   r3   r4   r5   r6   r7   r8   r9   	mimetypesr:   r;   rE   r   Singler
   Functionr   r	   Reservedr   ConstantBuiltinPseudor   Hexr   r   r   r   tokensrU   r=   r>   r?   s   @r0   r   r   F   s     D!GEIEI
%CMOJgnn%
 	
 	*Z($--8
 	);7
 	

 	<hG4h?
 	  ,,-
 	3VZZ@K	
 	JZ FO,FO,%&JO$L!IM"K 
 	L!{#4L
 	 &&1
 	/
EEFN rA   c            
           ] tR t^tRtRtR.tR.tR.tRt	Rt
RR	]P                  3R
]3R]P                  3R]3R]P                   3R]P$                  3R]3R]3./tRtR# )r   a:  
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.htmlz1.6rP   z	\\[\\{}%]z%.*$z\\(?:cr|l?dots|R|tab)\bz\\[a-zA-Z]+\bz^\s*#(?:ifn?def|endif).*\bz[{}]z[^\\%\n{}]+rQ   r   N)r2   r3   r4   r5   r6   r7   r8   r9   rZ   r:   r;   r   Escaper   r	   r^   Preprocr
   r_   r   rb   r=   r   rA   r0   r   r      s     DfGI I
=CM
 	6==)g')9)9:w'*GOO<dll#T"4L
FrA   )r   r   r   )r6   rS   pygments.lexerr   r   r   r   pygments.tokenr   r   r   r	   r
   r   r   r   r   r   __all__compiler   r   r   r   r   rA   r0   <module>rl      se    
 D D- - - 1 ::g,OE ,O^WZ Wt$j $rA   