diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2022-02-17 21:30:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-17 21:30:26 +0000 |
commit | 8e5ba693ad9377fbf4b047093624248b81eac854 (patch) | |
tree | 128ca3ac364ada5c021fe48b0008333d532117c1 | |
parent | 0c7f2610de94b42ce111c4839ba37505720181d4 (diff) | |
download | vim-git-8e5ba693ad9377fbf4b047093624248b81eac854.tar.gz |
patch 8.2.4411: bicep files are not recognizedv8.2.4411
Problem: Bicep files are not recognized.
Solution: Match *.bicep files. (Dundar Goc, closes #9791)
-rw-r--r-- | runtime/filetype.vim | 7 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index fe1f12cb0..288697be1 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -44,7 +44,7 @@ endif " file name matches ft_ignore_pat. " When using this, the entry should probably be further down below with the " other StarSetf() calls. -func! s:StarSetf(ft) +func s:StarSetf(ft) if expand("<amatch>") !~ g:ft_ignore_pat exe 'setf ' . a:ft endif @@ -229,6 +229,9 @@ au BufNewFile,BufRead *.bib setf bib " BibTeX Bibliography Style au BufNewFile,BufRead *.bst setf bst +" Bicep +au BufNewFile,BufRead *.bicep setf bicep + " BIND configuration " sudoedit uses namedXXXX.conf 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 " script-local, thus need to be executed here. " Returns a string with error messages (hopefully empty). -func! TestFiletypeFuncs(testlist) +func TestFiletypeFuncs(testlist) let output = '' for f in a:testlist try diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 9d1207056..2e28330bf 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -82,6 +82,7 @@ let s:filename_checks = { \ 'bdf': ['file.bdf'], \ 'beancount': ['file.beancount'], \ 'bib': ['file.bib'], + \ 'bicep': ['file.bicep'], \ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'], \ 'blank': ['file.bl'], \ 'bsdl': ['file.bsd', 'file.bsdl', 'bsd', 'some-bsd'], diff --git a/src/version.c b/src/version.c index d8b00f1d3..5cfd0a9e8 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4411, +/**/ 4410, /**/ 4409, |