summaryrefslogtreecommitdiffstats
path: root/syntax/rst.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/rst.vim')
-rw-r--r--syntax/rst.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/rst.vim b/syntax/rst.vim
index 43b17aa8..93e2e9e3 100644
--- a/syntax/rst.vim
+++ b/syntax/rst.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rst') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
" Vim syntax file
" Language: reStructuredText documentation format
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
@@ -292,3 +289,4 @@ let b:current_syntax = "rst"
let &cpo = s:cpo_save
unlet s:cpo_save
+endif