Mercurial > vim
comparison runtime/filetype.vim @ 27770:219471ed2fec v8.2.4411
patch 8.2.4411: bicep files are not recognized
Commit: https://github.com/vim/vim/commit/8e5ba693ad9377fbf4b047093624248b81eac854
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Thu Feb 17 21:30:26 2022 +0000
patch 8.2.4411: bicep files are not recognized
Problem: Bicep files are not recognized.
Solution: Match *.bicep files. (Dundar Goc, closes https://github.com/vim/vim/issues/9791)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Feb 2022 22:45:03 +0100 |
parents | 52bbe3590f50 |
children | addcf70c8346 |
comparison
equal
deleted
inserted
replaced
27769:8bdc44c25238 | 27770:219471ed2fec |
---|---|
42 | 42 |
43 " Function used for patterns that end in a star: don't set the filetype if the | 43 " Function used for patterns that end in a star: don't set the filetype if the |
44 " file name matches ft_ignore_pat. | 44 " file name matches ft_ignore_pat. |
45 " When using this, the entry should probably be further down below with the | 45 " When using this, the entry should probably be further down below with the |
46 " other StarSetf() calls. | 46 " other StarSetf() calls. |
47 func! s:StarSetf(ft) | 47 func s:StarSetf(ft) |
48 if expand("<amatch>") !~ g:ft_ignore_pat | 48 if expand("<amatch>") !~ g:ft_ignore_pat |
49 exe 'setf ' . a:ft | 49 exe 'setf ' . a:ft |
50 endif | 50 endif |
51 endfunc | 51 endfunc |
52 | 52 |
226 " BibTeX bibliography database file | 226 " BibTeX bibliography database file |
227 au BufNewFile,BufRead *.bib setf bib | 227 au BufNewFile,BufRead *.bib setf bib |
228 | 228 |
229 " BibTeX Bibliography Style | 229 " BibTeX Bibliography Style |
230 au BufNewFile,BufRead *.bst setf bst | 230 au BufNewFile,BufRead *.bst setf bst |
231 | |
232 " Bicep | |
233 au BufNewFile,BufRead *.bicep setf bicep | |
231 | 234 |
232 " BIND configuration | 235 " BIND configuration |
233 " sudoedit uses namedXXXX.conf | 236 " sudoedit uses namedXXXX.conf |
234 au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named | 237 au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named |
235 | 238 |
2514 endif | 2517 endif |
2515 | 2518 |
2516 " Function called for testing all functions defined here. These are | 2519 " Function called for testing all functions defined here. These are |
2517 " script-local, thus need to be executed here. | 2520 " script-local, thus need to be executed here. |
2518 " Returns a string with error messages (hopefully empty). | 2521 " Returns a string with error messages (hopefully empty). |
2519 func! TestFiletypeFuncs(testlist) | 2522 func TestFiletypeFuncs(testlist) |
2520 let output = '' | 2523 let output = '' |
2521 for f in a:testlist | 2524 for f in a:testlist |
2522 try | 2525 try |
2523 exe f | 2526 exe f |
2524 catch | 2527 catch |