summaryrefslogtreecommitdiffstats
path: root/after/syntax/llvm.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/llvm.vim')
-rw-r--r--after/syntax/llvm.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/syntax/llvm.vim b/after/syntax/llvm.vim
index 04d234a2..6f3daebf 100644
--- a/after/syntax/llvm.vim
+++ b/after/syntax/llvm.vim
@@ -1,4 +1,6 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p'))
+ finish
+endif
" Copyright (c) 2018 rhysd
"
@@ -22,5 +24,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
syn keyword llvmKeyword attributes
syn match llvmNoName /#\d\+\>/
-
-endif