# HG changeset patch # User Bram Moolenaar # Date 1605698104 -3600 # Node ID f83e31419f6ef16b4f6c9de64ad0ce322ba002a4 # Parent 0a8359e95ec9e65e5d6d49c14c7b0d8e3a6f01cd patch 8.2.2006: .pbtxt files are not recognized Commit: https://github.com/vim/vim/commit/88774a30c0b1957a6177cdb69d2becedae610299 Author: Bram Moolenaar Date: Wed Nov 18 12:12:39 2020 +0100 patch 8.2.2006: .pbtxt files are not recognized Problem: .pbtxt files are not recognized. Solution: Recognize .pbtxt as protobuf text buffers. (closes https://github.com/vim/vim/issues/7326) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1305,6 +1305,7 @@ au BufNewFile,BufRead *.pml setf prome " Google protocol buffers au BufNewFile,BufRead *.proto setf proto +au BufNewFile,BufRead *.pbtxt setf pbtxt " Protocols au BufNewFile,BufRead */etc/protocols setf protocols diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -345,6 +345,7 @@ let s:filename_checks = { \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'], \ 'pascal': ['file.pas', 'file.pp', 'file.dpr', 'file.lpr'], \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak', '/etc/passwd', '/etc/passwd-', '/etc/passwd.edit', '/etc/shadow', '/etc/shadow-', '/etc/shadow.edit', '/var/backups/passwd.bak', '/var/backups/shadow.bak'], + \ 'pbtxt': ['file.pbtxt'], \ 'pccts': ['file.g'], \ 'pdf': ['file.pdf'], \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2006, +/**/ 2005, /**/ 2004,