/usr/share/source-highlight/r.lang is in libsource-highlight-common 3.1.8-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # language definition file for R programming language (ess-like style)
comment start "#"
keyword = "if|else|for|while||repeat|break|next"
libsource = "library|source"
special_fun = "function"
costant = "TRUE", "FALSE", "NA", "NaN", "NULL", "Inf"
include "c_string.lang"
assignment = "<-","<<-"
symbol = '%.*%' # Operators %foo%-like are colored by ess
# Being a stat oriented language in a typical session with many
# numbers and many operators it's better not to color too much
# include "number.lang"
# symbol= # numeric
# "*",
# "-",
# "+",
# "/",
# "^",
# # logical
# "&",
# "\|",
# "!",
# # assignment (old style pays!)
# "<-", # it would be light green
# "<<-", # it would be light green
# # Formulas
# # "%",
# "~"
|