I want to change the color of a keyword that is followed by a left parenthesis in a .R file.
For instance, when I type
length(), I want the word
length to be highlighted (and not the parentheses), but when I type only
length it won't receive any highlighting.
I would also like to specify the color of the highlighting based on the word. So
function() should result in different colors for
Edit: So far I'm using the following line in my r.vim syntax file to match a valid R object name followed by (:
syn match rFunction "\(\(\a\|[.][._\a]\)[._\a0-9]*\)\+\ *("
And this works fine, but I want to not highlight that
( at the end, but rather have it be set to my default.