Naofumi Yasufuku writes: > Hello, > > In the case of C++ partial template specialization [1], functions are > shown as variables. Please look at the attached screenshots. > > 1. emacs -Q > 2. open attached C++ code "specialization.cc" > > attachments: > - NG_cc-partial-specialization.png > - OK_cc-partial-specialization.png > - specialization.cc > [..snip..] > > After a brief investigation, the attached cc-engine.el patch seems to > solve this issue at least, but it is not tested enough. > > attachments: > - 0001-cc-mode-Fix-function-fontification-in-the-case-of-C-.patch > Previous patch still has a problem with sizeof() specializations. Updated patch and screenshots are attached. attachments: - 0001-cc-mode-Fix-function-fontification-in-the-case-of-C-v2.patch - NG_cc-partial-specialization-v1.png - OK_cc-partial-specialization-v2.png - specialization.cc ------------------------------------------------------------- template class TwoSz { public: TwoSz() {} private: T1 _t1; }; template class TwoSz { public: TwoSz() {} private: T _t1; }; ------------------------------------------------------------- $ ./specialization One: primary One: specialization Two: primary Two: specialization Two: specialization Two: specialization Two: specialization Two: specialization Two: specialization Two: specialization TwoSz: primary TwoSz: specialization $ ------------------------------------------------------------- Best regards, Naofumi