summaryrefslogtreecommitdiffstats
path: root/after/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-08-12 23:45:36 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2014-08-12 23:45:36 +0200
commit90b24287deb9da69a8079599b8525e2be412f7f2 (patch)
tree78225d68b68f45ffa55d9fc84b10e64941abf96a /after/syntax
parent5f1223fbc5285689db812236c9100329740a805b (diff)
downloadvim-polyglot-90b24287deb9da69a8079599b8525e2be412f7f2.tar.gz
vim-polyglot-90b24287deb9da69a8079599b8525e2be412f7f2.zip
Update
Diffstat (limited to 'after/syntax')
-rw-r--r--after/syntax/c.vim24
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