This is a feature request for supporting syntax highlighting for R.
R is a popular language for statistical analysis: https://www.r-project.org/about.html
R-programs use the .R or .r suffix.
In Jedit 5.5 (LinuxMint), this suffix is used for rebol-language.
However, 13 years ago, in 2013, rebol moved from .r to .reb as a new standard for suffixes:
https://www.rebol.com/article/0540.html
I use the following mode entry for R:
<MODE NAME="rlang" FILE="rlang.xml"
FILE_NAME_GLOB="*.{r,R}" />
The old rebol entry in the catalog file should probably be changed to:
<MODE NAME="rebol" FILE="rebol.xml"
FILE_NAME_GLOB="*.reb" />
With respect to its syntax, R-lang has strong resemblance to S and Splus.
For my personnel use, I just copied/ pasted the splus.xml syntax file, renamed it to rlang.xml and commented one single line. (For the use of "_" which is allowed in R, but not in Splus)
I use this syntax highlighting successfully with different R-projects and didn't spot any problems.
Best regards.
The attached update for the syntax-highlighting file
introduces the following changes:
Last edit: goebbe 2026-04-14
I did some final clean-ups and optimizations:
I also attach a test file to check syntax highlighting of R-scripts.
From my point of view this could go in.