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