Mercurial > vim
comparison runtime/filetype.vim @ 34873:1707288c0b15 v9.1.0303
patch 9.1.0303: filetype: some protocol buffer files not recognized
Commit: https://github.com/vim/vim/commit/e54a8e7c73bbfba0c77e928f27fb3a9bffd2e8fd
Author: Bruno BELANYI <bruno@belanyi.fr>
Date: Wed Apr 10 22:34:42 2024 +0200
patch 9.1.0303: filetype: some protocol buffer files not recognized
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 10 Apr 2024 22:45:04 +0200 |
parents | 23dc393eadc7 |
children | af649de78695 |
comparison
equal
deleted
inserted
replaced
34872:d8c90ada53f5 | 34873:1707288c0b15 |
---|---|
1785 " Property Specification Language (PSL) | 1785 " Property Specification Language (PSL) |
1786 au BufNewFile,BufRead *.psl setf psl | 1786 au BufNewFile,BufRead *.psl setf psl |
1787 | 1787 |
1788 " Google protocol buffers | 1788 " Google protocol buffers |
1789 au BufNewFile,BufRead *.proto setf proto | 1789 au BufNewFile,BufRead *.proto setf proto |
1790 au BufNewFile,BufRead *.pbtxt setf pbtxt | 1790 au BufNewFile,BufRead *.txtpb,*.textproto,*.textpb,*.pbtxt setf pbtxt |
1791 | 1791 |
1792 " Poke | 1792 " Poke |
1793 au BufNewFile,BufRead *.pk setf poke | 1793 au BufNewFile,BufRead *.pk setf poke |
1794 | 1794 |
1795 " Protocols | 1795 " Protocols |