From 08fdf4b6b7fc1ca5ca51a7ecc4bc2185d8d33d69 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 10 Oct 2025 11:04:14 -0700 Subject: [PATCH] Update Vim syntax files to support edition keyword (which is weirdly already highlighted) and visibility keywords. PiperOrigin-RevId: 817713019 --- editors/proto.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editors/proto.vim b/editors/proto.vim index bdc60ce7f8..fb81f398d0 100644 --- a/editors/proto.vim +++ b/editors/proto.vim @@ -53,12 +53,13 @@ syn case match syn keyword pbTodo contained TODO FIXME XXX syn cluster pbCommentGrp contains=pbTodo -syn keyword pbSyntax syntax import option +syn keyword pbSyntax syntax import option edition syn keyword pbStructure package message group oneof syn keyword pbRepeat optional required repeated syn keyword pbDefault default syn keyword pbExtend extend extensions to max reserved syn keyword pbRPC service rpc returns +syn keyword pbVisibility local export syn keyword pbType int32 int64 uint32 uint64 sint32 sint64 syn keyword pbType fixed32 fixed64 sfixed32 sfixed64 @@ -90,6 +91,7 @@ if version >= 508 || !exists("did_proto_syn_inits") HiLink pbDefault Keyword HiLink pbExtend Keyword HiLink pbRPC Keyword + HiLink pbVisibility Keyword HiLink pbType Type HiLink pbTypedef Typedef HiLink pbBool Boolean