mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 12:33:51 -05:00
23 lines
502 B
VimL
23 lines
502 B
VimL
let files = filter(globpath(&rtp, 'syntax/vimgo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
let b:current_syntax = "vimgo"
|
|
|
|
syn match goInterface /^\S*/
|
|
syn region goTitle start="\%1l" end=":"
|
|
|
|
hi def link goInterface Type
|
|
hi def link goTitle Label
|
|
|
|
" vim: sw=2 ts=2 et
|
|
|
|
endif
|