/usr/share/highlight/langDefs/r.lang is in highlight-common 3.41-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 | Description="R"
Identifiers=[[ [a-zA-Z_][\w]* ]]
Keywords={
{ Id=1,
List={"if", "else", "repeat", "while", "function", "for", "in", "next", "break", "ifelse", "switch"},
},
{ Id=2,
List={"NULL", "NA", "Inf", "NaN", "TRUE", "T", "FALSE", "F"},
},
{ Id=4,
Regex=[[(\w+)\s*\(]],
}
}
Strings={
Delimiter=[["|']],
}
Comments={
{ Block=false,
Delimiter= { [[#]] },
},
}
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\.|\|]]
EnableIndentation=true
|