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