To: vim_dev@googlegroups.com Subject: Patch 8.2.2006 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2006 Problem: .pbtxt files are not recognized. Solution: Recognize .pbtxt as protobuf text buffers. (closes #7326) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.2005/runtime/filetype.vim 2020-11-06 18:52:51.281206341 +0100 --- runtime/filetype.vim 2020-11-18 12:09:11.551865450 +0100 *************** *** 1305,1310 **** --- 1305,1311 ---- " Google protocol buffers au BufNewFile,BufRead *.proto setf proto + au BufNewFile,BufRead *.pbtxt setf pbtxt " Protocols au BufNewFile,BufRead */etc/protocols setf protocols *** ../vim-8.2.2005/src/testdir/test_filetype.vim 2020-11-06 18:52:51.281206341 +0100 --- src/testdir/test_filetype.vim 2020-11-18 12:09:11.551865450 +0100 *************** *** 345,350 **** --- 345,351 ---- \ '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'], *** ../vim-8.2.2005/src/version.c 2020-11-18 11:34:30.182191403 +0100 --- src/version.c 2020-11-18 12:10:30.339763967 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2006, /**/ -- hundred-and-one symptoms of being an internet addict: 270. You are subscribed to a mailing list for every piece of software you use. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///