diff options
author | Bruno BELANYI <bruno@belanyi.fr> | 2024-04-10 22:34:42 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-10 22:34:42 +0200 |
commit | e54a8e7c73bbfba0c77e928f27fb3a9bffd2e8fd (patch) | |
tree | ffa07750faa2c328964d6b200765fedf7e9d4b80 /runtime | |
parent | 6be7ef5bc734ce6045d6f919f1a8559a3fa7f2fd (diff) |
patch 9.1.0303: filetype: some protocol buffer files not recognizedv9.1.0303
Problem: filetype: some protocol buffer files not recognized
Solution: Detect '*.textproto', '*.textpb', '*.txtpb' as pbtxt files
(Bruno Belanyi)
See: https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files
closes: #14463
Signed-off-by: Bruno BELANYI <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 99ac2028e1..732362d2a3 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1787,7 +1787,7 @@ au BufNewFile,BufRead *.psl setf psl " Google protocol buffers au BufNewFile,BufRead *.proto setf proto -au BufNewFile,BufRead *.pbtxt setf pbtxt +au BufNewFile,BufRead *.txtpb,*.textproto,*.textpb,*.pbtxt setf pbtxt " Poke au BufNewFile,BufRead *.pk setf poke |