summaryrefslogtreecommitdiffstats
path: root/after/syntax/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/c.vim')
-rw-r--r--after/syntax/c.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index 80501e19..d0478e01 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -1,4 +1,6 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == -1
+if !polyglot#util#IsEnabled('cpp-modern', expand('<sfile>:p'))
+ finish
+endif
" ==============================================================================
" Vim syntax file
@@ -66,5 +68,3 @@ if get(g:, 'cpp_simple_highlight', 0)
hi link cTypedef Statement
hi link cLabel Statement
endif
-
-endif