aboutsummaryrefslogtreecommitdiffstats
path: root/vim/after/syntax/c.vim
blob: 0f796e3d57deb626d4af9dfd3699d4653b81dd06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Highlight Class and Function names
syn match    cCustomParen    "(" contains=cParen
syn match    cCustomFunc     "\w\+\s*(" contains=cCustomParen

hi def link cCustomFunc  Function
hi def cCustomFunc  gui=bold guifg=yellowgreen

highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()