I work with C++ in emacs, and it works perfect, except for a detail when highlighting the code. Whenever I write a function with more than one argument (sometimes, even with just one), it does not recognice the function as a function, for instance, in:
double Gamma(double x, double mean, double gamma){
//some code
}
Gamma is not highlighted like a function, but as plain text, while in #define square(x) x*x, square is properly highlighted, as well in
complex<double> magphase2c(double mag, double phase){
// some code
}
where magphace2c is highlighted as a function.
The same behaviour occurs when I have, for instance,
TF1 *fitBWResult = new TF1("fitBWResult", BreitWigner, ResMassMin, ResMassMax, 3);
// versus
double Mass = 0.776132;
where fitBWResult is not recognized as a variable, but Mass is. This last problem only happens when I use pointers.
I’m using Emacs 23.4.1, I don’t know the version of cc-mode, but I’m running an up to date installation of Debian testing (wheezy).
Thanks in advance!
I think this question shouldn’t be left without an answer, and since I solved it thanks to the idea of user noisecapella, I post the solution I found:
Debian Wheezy, at the time, uses cc-mode 5.31.8 with Emacs 23.4.1, and this version of cc-mode is the one with the problem. The solution is install the newer version (maybe an old one may do the job, also) of the package, from their homepage. Particularly, I solved the issue installing version 5.32.3, the newer at the time being.