summaryrefslogtreecommitdiffstats
path: root/syntax/vimgo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/vimgo.vim')
-rw-r--r--syntax/vimgo.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/syntax/vimgo.vim b/syntax/vimgo.vim
index d62791d3..4dec0b43 100644
--- a/syntax/vimgo.vim
+++ b/syntax/vimgo.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -9,3 +11,5 @@ syn region goTitle start="\%1l" end=":"
hi def link goInterface Type
hi def link goTitle Label
+
+endif