diff options
Diffstat (limited to 'syntax/proto.vim')
-rw-r--r-- | syntax/proto.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/proto.vim b/syntax/proto.vim index cc1e6f9d..95d604c1 100644 --- a/syntax/proto.vim +++ b/syntax/proto.vim @@ -1,11 +1,6 @@ -let s:base = expand("<sfile>:h:h") -let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" } -let files = filter(globpath(&rtp, 'syntax/proto.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('protobuf', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1 " Protocol Buffers - Google's data interchange format " Copyright 2008 Google Inc. All rights reserved. @@ -114,5 +109,3 @@ if version >= 508 || !exists("did_proto_syn_inits") endif let b:current_syntax = "proto" - -endif |