vim-cpp-enhanced-highlight
vim-cpp-enhanced-highlight copied to clipboard
Configuration: let g:cpp_experimental_template_highlight = 1 breaks cast type highlight.
let g:cpp_experimental_template_highlight = 1 breaks cast type highlight.
For:
- static_cast
- reinterpret_cast
- const_cast

It helps with templates, but breaks the cast.
There seem to be some general issues with the template highlight currently, I'll have a look.
Ok so this seems to be a current limitation of g:cpp_experimental_template_highlight. There is an alternative implementation that can be enabled with g:cpp_experimental_simple_template_highlight for which this works. Of course it has other limitations, mostly that it's slower.