octol / vim-cpp-enhanced-highlight

Additional Vim syntax highlighting for C++ (including C++11/14/17)
MIT License
1.06k stars 150 forks source link

Highlight class names in declaration blocks #42

Closed ghost closed 7 years ago

ghost commented 7 years ago

Highlight class names in declaration

Class name highlighting is controlled by new global variable g:cpp_class_decl_highlight

Enabling this option will highlight all class names in declaration blocks, including forward declarations and inheritance blocks. This coexists with g:cpp_class_scope_highlight, and does not depend on it.

By default, class declarations are added to highlight group Function, but this can be changed by the user in .vimrc class decl example

octol commented 7 years ago

Thanks!