summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index 86c09b68..5f098aaa 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
" Copyright 2009 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -414,3 +411,4 @@ syn sync minlines=500
let b:current_syntax = "go"
" vim: sw=2 ts=2 et
+endif