vim: add better highlighting rules for polyglot/C++

master
an 2019-07-02 17:15:44 -04:00
parent 79960e750d
commit 6d55a1d4cc
1 changed files with 21 additions and 0 deletions

View File

@ -205,6 +205,27 @@ filetype on
filetype plugin on
filetype indent on
" Highlighting ---------------------------------------------------------------|
" Settings for C++ to make it more consistent with other highlighting groups,
" and better for recent standards and specs.
let g:cpp_class_scope_highlight=1
let g:cpp_concepts_highlight=1
" Get rid of STL highlighting because those are NOT keywords
hi link cppSTLbool NONE
hi link cppSTLcast NONE
hi link cppSTLconstant NONE
hi link cppSTLenum NONE
hi link cppSTLexception NONE
hi link cppSTLfunction NONE
hi link cppSTLfunctional NONE
hi link cppSTLios NONE
hi link cppSTLiterator NONE
hi link cppSTLiterator_tag NONE
hi link cppSTLnamespace NONE
hi link cppSTLtype NONE
" Functions ------------------------------------------------------------------|
" Automatic headers