]> granicus.if.org Git - vim/commitdiff
patch 8.2.4411: bicep files are not recognized v8.2.4411
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Thu, 17 Feb 2022 21:30:26 +0000 (21:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 Feb 2022 21:30:26 +0000 (21:30 +0000)
Problem:    Bicep files are not recognized.
Solution:   Match *.bicep files. (Dundar Goc, closes #9791)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index fe1f12cb06b16e24a2cac9fcf14859c209875309..288697be10de6b0ed2870b2bc2c8170b0f2f7728 100644 (file)
@@ -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
index 9d120705637c5145d3a15711a50df16fb5d2d1af..2e28330bf63047aa8e9cabd09f7629ee46968654 100644 (file)
@@ -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'],
index d8b00f1d33f92bd3dd8636f97f439dcbe81550ce..5cfd0a9e87f8cccd1a0e3fc3148790706dac42f6 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4411,
 /**/
     4410,
 /**/