diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-17 21:14:03 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-17 21:14:26 -0400 |
commit | b3d669b40bd4736d42c52430ec84d76c2f5151eb (patch) | |
tree | 732c8e500c50f59979de90aa30bae7b2f5b3dcc7 | |
parent | 6f7141dd766355639955b7d281987ea93f244cb2 (diff) | |
download | rneovim-b3d669b40bd4736d42c52430ec84d76c2f5151eb.tar.gz rneovim-b3d669b40bd4736d42c52430ec84d76c2f5151eb.tar.bz2 rneovim-b3d669b40bd4736d42c52430ec84d76c2f5151eb.zip |
vim-patch:8.2.0589: .bsd file type not recognized
Problem: .bsd file type not recognized.
Solution: Recognize .bsd as BSDL. (Daniel Kho, closes vim/vim#5945)
https://github.com/vim/vim/commit/0fc1288aefce25da0a2fb2a0aab75b0bd314403f
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index dbdd90041c..5068f9be76 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -230,13 +230,13 @@ au BufNewFile,BufRead *.bl setf blank au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml " BSDL -au BufNewFile,BufRead *.bsdl setf bsdl +au BufNewFile,BufRead *bsd,*.bsdl setf bsdl " Bazel (http://bazel.io) autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel setf bzl if has("fname_case") " There is another check for BUILD further below. - autocmd BufRead,BufNewFile BUILD setf bzl + autocmd BufRead,BufNewFile BUILD setf bzl endif " C or lpc diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index e4e48d2d35..c3ddce7914 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -79,7 +79,7 @@ let s:filename_checks = { \ 'bib': ['file.bib'], \ 'bindzone': ['named.root'], \ 'blank': ['file.bl'], - \ 'bsdl': ['file.bsdl'], + \ 'bsdl': ['file.bsd', 'file.bsdl'], \ 'bst': ['file.bst'], \ 'bzr': ['bzr_log.any'], \ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c'], |