summaryrefslogtreecommitdiffstats
path: root/indent/reason.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/reason.vim')
-rw-r--r--indent/reason.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/indent/reason.vim b/indent/reason.vim
index 4901a4f5..0e8c3b74 100644
--- a/indent/reason.vim
+++ b/indent/reason.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'reason') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
" Vim indent file
" Language: Reason (adapted from Rust)
" Author: Chris Morgan <me@chrismorgan.info> (Modifications by Jordan W)
@@ -219,3 +216,4 @@ function GetReasonIndent(lnum)
" Fall back on cindent, which does it mostly right
return cindent(a:lnum)
endfunction
+endif