diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-11-19 17:23:45 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2020-11-19 17:35:41 +0000 |
commit | a18f050e51f9a9735057ebbecf84cff1842a8ef4 (patch) | |
tree | f0bd624a742cb3a71e272b5e60aa2c81284050f2 | |
parent | ad56527247353df4a83fc7232d8680083ec4f24f (diff) | |
download | rneovim-a18f050e51f9a9735057ebbecf84cff1842a8ef4.tar.gz rneovim-a18f050e51f9a9735057ebbecf84cff1842a8ef4.tar.bz2 rneovim-a18f050e51f9a9735057ebbecf84cff1842a8ef4.zip |
vim-patch:8.2.2006: .pbtxt files are not recognized
Problem: .pbtxt files are not recognized.
Solution: Recognize .pbtxt as protobuf text buffers. (closes vim/vim#7326)
https://github.com/vim/vim/commit/88774a30c0b1957a6177cdb69d2becedae610299
-rw-r--r-- | runtime/filetype.vim | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 8eb26046da..4e617052a9 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1301,6 +1301,7 @@ au BufNewFile,BufRead *.pml setf promela " 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/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 9f7e153955..af8482bdbe 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -329,6 +329,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'], + \ 'pbtxt': ['file.pbtxt'], \ 'pccts': ['file.g'], \ 'pdf': ['file.pdf'], \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], |