summaryrefslogtreecommitdiffstats
path: root/after/syntax/c.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-09-27 19:57:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2017-09-27 19:57:29 +0200
commit8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 (patch)
tree125734ac66307a962eeda16283355dde0d0fbd2e /after/syntax/c.vim
parent9bfde7574aa89a91b80ed9c993fc000cfc11aae7 (diff)
downloadvim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.tar.gz
vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.zip
Update
Diffstat (limited to '')
-rw-r--r--after/syntax/c.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index 8cec90f6..de14c4db 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -20,9 +20,11 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1
" -----------------------------------------------------------------------------
" Highlight function names.
" -----------------------------------------------------------------------------
-syn match cCustomParen "(" contains=cParen contains=cCppParen
-syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen
-hi def link cCustomFunc Function
+if !exists('g:cpp_no_function_highlight')
+ syn match cCustomParen "(" contains=cParen contains=cCppParen
+ syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen
+ hi def link cCustomFunc Function
+endif
" -----------------------------------------------------------------------------
" Highlight member variable names.