1
0
forked from aniani/vim

patch 8.2.4411: bicep files are not recognized

Problem:    Bicep files are not recognized.
Solution:   Match *.bicep files. (Dundar Goc, closes #9791)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2022-02-17 21:30:26 +00:00
committed by Bram Moolenaar
parent 0c7f2610de
commit 8e5ba693ad
3 changed files with 8 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ endif
" file name matches ft_ignore_pat. " file name matches ft_ignore_pat.
" When using this, the entry should probably be further down below with the " When using this, the entry should probably be further down below with the
" other StarSetf() calls. " other StarSetf() calls.
func! s:StarSetf(ft) func s:StarSetf(ft)
if expand("<amatch>") !~ g:ft_ignore_pat if expand("<amatch>") !~ g:ft_ignore_pat
exe 'setf ' . a:ft exe 'setf ' . a:ft
endif endif
@@ -229,6 +229,9 @@ au BufNewFile,BufRead *.bib setf bib
" BibTeX Bibliography Style " BibTeX Bibliography Style
au BufNewFile,BufRead *.bst setf bst au BufNewFile,BufRead *.bst setf bst
" Bicep
au BufNewFile,BufRead *.bicep setf bicep
" BIND configuration " BIND configuration
" sudoedit uses namedXXXX.conf " sudoedit uses namedXXXX.conf
au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named
@@ -2516,7 +2519,7 @@ endif
" Function called for testing all functions defined here. These are " Function called for testing all functions defined here. These are
" script-local, thus need to be executed here. " script-local, thus need to be executed here.
" Returns a string with error messages (hopefully empty). " Returns a string with error messages (hopefully empty).
func! TestFiletypeFuncs(testlist) func TestFiletypeFuncs(testlist)
let output = '' let output = ''
for f in a:testlist for f in a:testlist
try try

View File

@@ -82,6 +82,7 @@ let s:filename_checks = {
\ 'bdf': ['file.bdf'], \ 'bdf': ['file.bdf'],
\ 'beancount': ['file.beancount'], \ 'beancount': ['file.beancount'],
\ 'bib': ['file.bib'], \ 'bib': ['file.bib'],
\ 'bicep': ['file.bicep'],
\ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'], \ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
\ 'blank': ['file.bl'], \ 'blank': ['file.bl'],
\ 'bsdl': ['file.bsd', 'file.bsdl', 'bsd', 'some-bsd'], \ 'bsdl': ['file.bsd', 'file.bsdl', 'bsd', 'some-bsd'],

View File

@@ -750,6 +750,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 */
/**/
4411,
/**/ /**/
4410, 4410,
/**/ /**/