summaryrefslogtreecommitdiffstats
path: root/ftplugin/moon.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/moon.vim')
-rw-r--r--ftplugin/moon.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim
index 4dc259fe..e8adbf2f 100644
--- a/ftplugin/moon.vim
+++ b/ftplugin/moon.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'moonscript') != -1
+ finish
+endif
+
" Language: MoonScript
" Maintainer: leafo <leafot@gmail.com>
" Based On: CoffeeScript by Mick Koch <kchmck@gmail.com>
@@ -16,5 +18,3 @@ setlocal comments=:--
setlocal commentstring=--\ %s
let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<"
-
-endif