Files
cshenv/vim/after/syntax/cplusplus.vim
2022-11-07 15:07:59 -05:00

34 lines
624 B
VimL

if exists("b:current_syntax")
unlet b:current_syntax
endif
syn include @cxxInDoxygen syntax/cpp.vim
syn include @cxxInComment syntax/cpp.vim
unlet b:current_syntax
" This enables Basic C++ support, with my extensions.
"let c_no_bracket_error=1
"let c_no_curly_error=1
"if version < 600
" so <sfile>:p:h/cpp.vim
"else
" runtime! syntax/cpp.vim
"endif
if exists("b:current_syntax")
unlet b:current_syntax
endif
" This enables doxygen simultaneous with C++.
if version < 600
so <sfile>:p:h/doxygen.vim
else
runtime! syntax/doxygen.vim
endif
let b:current_syntax = "cplusplus"
syn sync clear
syn sync fromstart