Does anyone know of the reason for this. I have the same issue when I start a new project from .ioc file. If i imported an example project the syntax highlighting works fine.
recently I was using Eclipse 2022-12 for C++, and I tried to use the same trick but it did not work.
But still there were some functions with different color. In this case they were functions from a library which I have only the header file and the compiled.
But if you change theme, in my case dark, all functions had the same color. Interesting.
Found a way of helping highlight the functions normally:
go to 'Window' tab > Preferences > C/C++ > Editor > Syntax Coloring Then go into 'Code > Functions' and enable it and choose your highlighting colour etc.