diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-21 16:45:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 16:45:32 +0100 |
commit | 9d02fc4c00f61724610224f91950c51bd2700c97 (patch) | |
tree | 668058cd83c4d76c59717ca04b1a6e0c6d5fb0ee /runtime/filetype.vim | |
parent | c977d8b43cd6ecf7ad756f9b064eadea79fbd604 (diff) | |
download | rneovim-9d02fc4c00f61724610224f91950c51bd2700c97.tar.gz rneovim-9d02fc4c00f61724610224f91950c51bd2700c97.tar.bz2 rneovim-9d02fc4c00f61724610224f91950c51bd2700c97.zip |
vim-patch:8.2.4172: filetype detection for BASIC is not optimal (#17161)
Problem: Filetype detection for BASIC is not optimal.
Solution: Improve BASIC filetype detection. (Doug Kearns)
https://github.com/vim/vim/commit/6517f14165cdebf83a07ab9d4aeeb102b4e16e92
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 73237437dc..f809a47b3f 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -189,7 +189,8 @@ au BufNewFile,BufRead *.awk,*.gawk setf awk au BufNewFile,BufRead *.mch,*.ref,*.imp setf b " BASIC or Visual Basic -au BufNewFile,BufRead *.bas call dist#ft#FTVB("basic") +au BufNewFile,BufRead *.bas call dist#ft#FTbas() +au BufNewFile,BufRead *.bi,*.bm call dist#ft#FTbas() " Visual Basic Script (close to Visual Basic) or Visual Basic .NET au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb @@ -198,7 +199,7 @@ au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb au BufNewFile,BufRead *.iba,*.ibi setf ibasic " FreeBasic file (similar to QBasic) -au BufNewFile,BufRead *.fb,*.bi setf freebasic +au BufNewFile,BufRead *.fb setf freebasic " Batch file for MSDOS. au BufNewFile,BufRead *.bat,*.sys setf dosbatch |