summaryrefslogtreecommitdiffstats
path: root/syntax/toml.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/toml.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/toml.vim b/syntax/toml.vim
index 0299d28e..218d4fe6 100644
--- a/syntax/toml.vim
+++ b/syntax/toml.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'toml') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
" Language: TOML
" Maintainer: Caleb Spare <cespare@gmail.com>
" URL: https://github.com/cespare/vim-toml
@@ -78,3 +75,4 @@ hi def link tomlComment Comment
syn sync minlines=500
let b:current_syntax = "toml"
+endif