Merge branch 'vimsyntax' of https://github.com/adamlsd/cshenv into vimsyntax
This commit is contained in:
@ -1,19 +1,14 @@
|
|||||||
|
" ADAM C++ vim syntax after extensions
|
||||||
|
|
||||||
if version < 600
|
if version < 600
|
||||||
"so <sfile>:p:h/c.vim
|
|
||||||
"so <sfile>:p:h/cpp.vim
|
|
||||||
so <sfile>:p:h/doxygen.vim
|
so <sfile>:p:h/doxygen.vim
|
||||||
else
|
else
|
||||||
"runtime! syntax/c.vim
|
|
||||||
"runtime! syntax/cpp.vim
|
|
||||||
runtime! syntax/doxygen.vim
|
runtime! syntax/doxygen.vim
|
||||||
"unlet b:current_syntax
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syn match cxxObjects "\<[A-Z][A-Za-z0-9_]*[a-z][A-Za-z0-9_]*\>"
|
syn match cxxObjects "\<[A-Z][A-Za-z0-9_]*[a-z][A-Za-z0-9_]*\>"
|
||||||
syn match cxxMetaFunction "\<[a-z][a-z0-9]*_[a-z0-9_]*[a-z0-9]\>"
|
syn match cxxMetaFunction "\<[a-z][a-z0-9]*_[a-z0-9_]*[a-z0-9]\>"
|
||||||
|
|
||||||
|
|
||||||
syn keyword cxxExceptionNames Exception Exceptions
|
syn keyword cxxExceptionNames Exception Exceptions
|
||||||
syn match cxxExceptionNames "\<[A-Z][A-Za-z0-9_]*Exception\>"
|
syn match cxxExceptionNames "\<[A-Z][A-Za-z0-9_]*Exception\>"
|
||||||
|
|
||||||
@ -24,6 +19,9 @@ syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s
|
|||||||
syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
|
syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
|
||||||
|
|
||||||
|
|
||||||
|
" Define the default highlighting.
|
||||||
|
" For version 5.7 and earlier: only when not done already
|
||||||
|
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||||
if version >= 508 || !exists("did_cxx_syntax_inits")
|
if version >= 508 || !exists("did_cxx_syntax_inits")
|
||||||
if version < 508
|
if version < 508
|
||||||
let did_cxx_syntax_inits = 1
|
let did_cxx_syntax_inits = 1
|
||||||
|
@ -22,3 +22,7 @@ hi doxygenComment ctermfg=Blue guifg=Blue
|
|||||||
hi doxygenBody ctermfg=cyan
|
hi doxygenBody ctermfg=cyan
|
||||||
hi doxygenSpecialMultilineDesc ctermfg=cyan
|
hi doxygenSpecialMultilineDesc ctermfg=cyan
|
||||||
hi NamedConstant ctermfg=lightblue
|
hi NamedConstant ctermfg=lightblue
|
||||||
|
|
||||||
|
hi Example ctermfg=white
|
||||||
|
hi DocNotes ctermfg=yellow
|
||||||
|
hi Description ctermfg=yellow
|
||||||
|
Reference in New Issue
Block a user