summaryrefslogtreecommitdiffstats
path: root/syntax/godefstack.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/godefstack.vim')
-rw-r--r--syntax/godefstack.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/godefstack.vim b/syntax/godefstack.vim
index 0fad9561..69e10a3e 100644
--- a/syntax/godefstack.vim
+++ b/syntax/godefstack.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
+ finish
+endif
+
if exists("b:current_syntax")
finish
endif
@@ -20,5 +22,3 @@ hi def link godefStackFilename Directory
hi def link godefStackEntryLocationNumber LineNr
" vim: sw=2 ts=2 et
-
-endif