mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
6be7ef5bc7
commit
e54a8e7c73
@@ -1787,7 +1787,7 @@ au BufNewFile,BufRead *.psl setf psl
|
|||||||
|
|
||||||
" Google protocol buffers
|
" Google protocol buffers
|
||||||
au BufNewFile,BufRead *.proto setf proto
|
au BufNewFile,BufRead *.proto setf proto
|
||||||
au BufNewFile,BufRead *.pbtxt setf pbtxt
|
au BufNewFile,BufRead *.txtpb,*.textproto,*.textpb,*.pbtxt setf pbtxt
|
||||||
|
|
||||||
" Poke
|
" Poke
|
||||||
au BufNewFile,BufRead *.pk setf poke
|
au BufNewFile,BufRead *.pk setf poke
|
||||||
|
@@ -522,7 +522,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
papp: ['file.papp', 'file.pxml', 'file.pxsl'],
|
papp: ['file.papp', 'file.pxml', 'file.pxsl'],
|
||||||
pascal: ['file.pas', 'file.dpr', 'file.lpr'],
|
pascal: ['file.pas', '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'],
|
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'],
|
pbtxt: ['file.txtpb', 'file.textproto', 'file.textpb', 'file.pbtxt'],
|
||||||
pccts: ['file.g'],
|
pccts: ['file.g'],
|
||||||
pcmk: ['file.pcmk'],
|
pcmk: ['file.pcmk'],
|
||||||
pdf: ['file.pdf'],
|
pdf: ['file.pdf'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
303,
|
||||||
/**/
|
/**/
|
||||||
302,
|
302,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user