I'd like to highlight function calls in C code, eg:
(font-lock-add-keywords 'c-mode
`((,(concat
"\\([_a-zA-Z][_a-zA-Z0-9]*\\)" ; Object identifier
"\\s *" ; Optional white space
"(") ; Paren for method invocation
1 'font-lock-function-name-face t)))
However this will highlight switch (
, if (
, while (
... etc. as well as text in comments.
Besides explicitly excluding all keywords in the regex above, is there a way to only highlight text which does not already have any highlighting applied?