Skip to content

Commit 88774a3

Browse files
committed
patch 8.2.2006: .pbtxt files are not recognized
Problem: .pbtxt files are not recognized. Solution: Recognize .pbtxt as protobuf text buffers. (closes #7326)
1 parent c77534c commit 88774a3

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ au BufNewFile,BufRead *.pml setf promela
13051305

13061306
" Google protocol buffers
13071307
au BufNewFile,BufRead *.proto setf proto
1308+
au BufNewFile,BufRead *.pbtxt setf pbtxt
13081309

13091310
" Protocols
13101311
au BufNewFile,BufRead */etc/protocols setf protocols

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ let s:filename_checks = {
345345
\ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
346346
\ 'pascal': ['file.pas', 'file.pp', 'file.dpr', 'file.lpr'],
347347
\ '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'],
348+
\ 'pbtxt': ['file.pbtxt'],
348349
\ 'pccts': ['file.g'],
349350
\ 'pdf': ['file.pdf'],
350351
\ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2006,
753755
/**/
754756
2005,
755757
/**/

0 commit comments

Comments
 (0)