diff options
| author | Bram Moolenaar <Bram@vim.org> | 2022-01-21 14:55:13 +0000 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2022-01-21 14:55:13 +0000 |
| commit | 6517f14165cdebf83a07ab9d4aeeb102b4e16e92 (patch) | |
| tree | a0258a20e2c2c5113bf41fb6a331979f6b21e018 /runtime/filetype.vim | |
| parent | f0e7e6365e86ca42c177fe165d3097d1bfb35f72 (diff) | |
| download | vim-git-8.2.4172.tar.gz | |
patch 8.2.4172: filetype detection for BASIC is not optimalv8.2.4172
Problem: Filetype detection for BASIC is not optimal.
Solution: Improve BASIC filetype detection. (Doug Kearns)
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 3b6129585..acb87ff93 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -193,7 +193,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 @@ -202,7 +203,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 |
