diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 42c9b9db..be34d256 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,4 +1,28 @@ " Vim syntax file +" Language: C Additions +" Maintainer: Jon Haggblad <jon@haeggblad.com> +" URL: http://www.haeggblad.com +" Last Change: 9 Aug 2014 +" Version: 0.1 +" Changelog: +" 0.1 - initial version. +" +" Syntax highlighting for functions in C. +" +" Based on: +" http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim + +" ----------------------------------------------------------------------------- +" Highlight Class and Function names. +" ----------------------------------------------------------------------------- +syn match cCustomParen "(" contains=cParen contains=cCppParen +syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen +syn match cCustomScope "::" +syn match cCustomClass "\w\+\s*::" contains=cCustomScope + +hi def link cCustomFunc Function + +" Vim syntax file " Language: C Additions " Maintainer: Mikhail Wolfson <mywolfson@gmail.com> " URL: http://web.mit.edu/wolfsonm |