diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-02-17 23:05:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 23:05:48 +0100 |
commit | 1fd106ca88a606241e1e1fb8c73645dcea5ea5c8 (patch) | |
tree | 57462c8d035b217cb83c5ac21fcb1e464e5ed110 /runtime | |
parent | d1e3d8abd65023d9b5ca3cdde47479cf13dea1c2 (diff) | |
download | rneovim-1fd106ca88a606241e1e1fb8c73645dcea5ea5c8.tar.gz rneovim-1fd106ca88a606241e1e1fb8c73645dcea5ea5c8.tar.bz2 rneovim-1fd106ca88a606241e1e1fb8c73645dcea5ea5c8.zip |
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)
https://github.com/vim/vim/commit/8e5ba693ad9377fbf4b047093624248b81eac854
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 7 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 35f4b25120..60be03d708 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 @@ -225,6 +225,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 @@ -2517,7 +2520,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/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 2fe4aa3d32..399e1c7f60 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -65,6 +65,7 @@ local extension = { bdf = "bdf", beancount = "beancount", bib = "bib", + bicep = "bicep", bl = "blank", bsdl = "bsdl", bst = "bst", |