mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4411: bicep files are not recognized (#17447)
Problem: Bicep files are not recognized.
Solution: Match *.bicep files. (Dundar Goc, closes vim/vim#9791)
8e5ba693ad
This commit is contained in:
parent
d1e3d8abd6
commit
1fd106ca88
@ -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
|
||||||
@ -225,6 +225,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
|
||||||
@ -2517,7 +2520,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
|
||||||
|
@ -65,6 +65,7 @@ local extension = {
|
|||||||
bdf = "bdf",
|
bdf = "bdf",
|
||||||
beancount = "beancount",
|
beancount = "beancount",
|
||||||
bib = "bib",
|
bib = "bib",
|
||||||
|
bicep = "bicep",
|
||||||
bl = "blank",
|
bl = "blank",
|
||||||
bsdl = "bsdl",
|
bsdl = "bsdl",
|
||||||
bst = "bst",
|
bst = "bst",
|
||||||
|
@ -81,6 +81,7 @@ let s:filename_checks = {
|
|||||||
\ 'bc': ['file.bc'],
|
\ 'bc': ['file.bc'],
|
||||||
\ 'bdf': ['file.bdf'],
|
\ 'bdf': ['file.bdf'],
|
||||||
\ 'bib': ['file.bib'],
|
\ 'bib': ['file.bib'],
|
||||||
|
\ 'bicep': ['file.bicep'],
|
||||||
\ 'beancount': ['file.beancount'],
|
\ 'beancount': ['file.beancount'],
|
||||||
\ '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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user