Skip to main content

Module highlighter

Module highlighter 

Source
Expand description

R syntax highlighting for the REPL.

Colors R keywords, strings, numbers, comments, and operators as the user types, providing immediate visual feedback about syntax structure.

Structsยง

RHighlighter

Enumsยง

TokenKind ๐Ÿ”’

Functionsยง

classify_word ๐Ÿ”’
raw_string_prefix ๐Ÿ”’
Check if position i starts an R 4.0+ raw string like r"(...)", R"[...]", r'(...)', R'{...}', etc. Returns the closing delimiter char and the number of chars consumed for the prefix (e.g. r"( = 3 chars) if it matches.