diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-03-23 11:28:19 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-03-23 11:28:28 +0100 |
commit | 0801eac01aab5940fc1e4409ba749383cc353bc2 (patch) | |
tree | 9034c9f6cd0c7592a09e6c65521c6948c3a983af /after/syntax/c.vim | |
parent | 9f735b1fe77072e001a593f7f6660703bf4a8c9c (diff) | |
download | vim-polyglot-0801eac01aab5940fc1e4409ba749383cc353bc2.tar.gz vim-polyglot-0801eac01aab5940fc1e4409ba749383cc353bc2.zip |
Update
Diffstat (limited to 'after/syntax/c.vim')
-rw-r--r-- | after/syntax/c.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index aa4a31ec..8cec90f6 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -25,6 +25,16 @@ syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen hi def link cCustomFunc Function " ----------------------------------------------------------------------------- +" Highlight member variable names. +" ----------------------------------------------------------------------------- +if exists('g:cpp_member_variable_highlight') && g:cpp_member_variable_highlight + syn match cCustomDot "\." contained + syn match cCustomPtr "->" contained + syn match cCustomMemVar "\(\.\|->\)\w\+" contains=cCustomDot,cCustomPtr + hi def link cCustomMemVar Function +endif + +" ----------------------------------------------------------------------------- " Source: aftersyntaxc.vim " ----------------------------------------------------------------------------- |