modern-cpp-font-lock
modern-cpp-font-lock copied to clipboard
Trouble with attributes
When I give a function an attribute, the function name is no longer fontified.
When I write a function:
int myfunction() { /*...*/ }
it is fontified correctly. But if I add any attribute:
[[nodiscard]] int myfunction() { /*...*/ }
the function name myfunction is now just the default text color. This happens with multiple
Hello,
I am not able to reproduce your issue:

I suggest you to reproduce your issue with a minimal configuration. If the issue is still there, can you report it to cc-mode which is the official Emacs C++ support. If the bug is fixed upstream, all Emacs users will get a fix. This package was a temporary fix at the time of C++11 was released.