Patch 8.2.4411
Problem:    Bicep files are not recognized.
Solution:   Match *.bicep files. (Dundar Goc, closes #9791)
Files:      runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-8.2.4410/runtime/filetype.vim        2022-02-12 10:33:49.196751171 
+0000
--- runtime/filetype.vim        2022-02-17 21:18:05.791950465 +0000
***************
*** 44,50 ****
  " 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)
    if expand("<amatch>") !~ g:ft_ignore_pat
      exe 'setf ' . a:ft
    endif
--- 44,50 ----
  " 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)
    if expand("<amatch>") !~ g:ft_ignore_pat
      exe 'setf ' . a:ft
    endif
***************
*** 229,234 ****
--- 229,237 ----
  " 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,2522 ****
  " 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)
    let output = ''
    for f in a:testlist
      try
--- 2519,2525 ----
  " 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)
    let output = ''
    for f in a:testlist
      try
*** ../vim-8.2.4410/src/testdir/test_filetype.vim       2022-02-12 
10:33:49.196751171 +0000
--- src/testdir/test_filetype.vim       2022-02-17 21:18:05.791950465 +0000
***************
*** 82,87 ****
--- 82,88 ----
      \ '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'],
*** ../vim-8.2.4410/src/version.c       2022-02-17 19:44:04.275319369 +0000
--- src/version.c       2022-02-17 21:20:01.679790566 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4411,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
61. Your best friends know your e-mail address, but neither your phone number
    nor the address where you live.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220217213052.EA4D61C0FE0%40moolenaar.net.

Raspunde prin e-mail lui