highlight operators and parenthesis when C++

This commit is contained in:
nojhan 2011-11-02 15:22:07 +01:00
commit 9c672745dd
2 changed files with 14 additions and 10 deletions

View file

@ -538,13 +538,13 @@ endif
exe "hi! Normal" .s:fmt_none .s:fg_base0 .s:bg_back
exe "hi! Comment" .s:fmt_ital .s:fg_yellow .s:bg_none
exe "hi! Comment" .s:fmt_ital .s:fg_green .s:bg_none
" *Comment any comment
exe "hi! Constant" .s:fmt_none .s:fg_cyan .s:bg_none
" *Constant any constant
" String a string constant: "this is a string"
exe "hi! String" .s:fmt_none .s:fg_orange .s:bg_none
exe "hi! String" .s:fmt_none .s:fg_yellow .s:bg_none
" Character a character constant: 'c', '\n'
" Number a number constant: 234, 0xff
" Boolean a boolean constant: TRUE, false
@ -553,9 +553,11 @@ exe "hi! String" .s:fmt_none .s:fg_orange .s:bg_none
exe "hi! Identifier" .s:fmt_none .s:fg_blue .s:bg_none
" *Identifier any variable name
" Function function name (also: methods for classes)
exe "hi! cppSTL" .s:fmt_ital .s:fg_base1 .s:bg_none
exe "hi! cppSTL" .s:fmt_none .s:fg_cyan .s:bg_none
exe "hi! cppBraces" .s:fmt_bold .s:fg_base1 .s:bg_none
exe "hi! cppOperator" .s:fmt_none .s:fg_violet .s:bg_none
exe "hi! Statement" .s:fmt_none .s:fg_blue .s:bg_none
exe "hi! Statement" .s:fmt_none .s:fg_orange .s:bg_none
" *Statement any statement
" Conditional if, then, else, endif, switch, etc.
" Repeat for, do, while, etc.
@ -563,6 +565,7 @@ exe "hi! Statement" .s:fmt_none .s:fg_blue .s:bg_none
" Operator "sizeof", "+", "*", etc.
" Keyword any other keyword
" Exception try, catch, throw
exe "hi! cppStatement" .s:fmt_none .s:fg_yellow .s:bg_none
exe "hi! PreProc" .s:fmt_none .s:fg_base01 .s:bg_none
" *PreProc generic Preprocessor
@ -571,7 +574,7 @@ exe "hi! PreProc" .s:fmt_none .s:fg_base01 .s:bg_none
" Macro same as Define
" PreCondit preprocessor #if, #else, #endif, etc.
exe "hi! Type" .s:fmt_none .s:fg_green .s:bg_none
exe "hi! Type" .s:fmt_none .s:fg_blue .s:bg_none
" *Type int, long, char, etc.
" StorageClass static, register, volatile, etc.
" Structure struct, union, enum, etc.