comparison runtime/filetype.vim @ 27287:9f72ec92d361 v8.2.4172

patch 8.2.4172: filetype detection for BASIC is not optimal Commit: https://github.com/vim/vim/commit/6517f14165cdebf83a07ab9d4aeeb102b4e16e92 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 21 14:55:13 2022 +0000 patch 8.2.4172: filetype detection for BASIC is not optimal Problem: Filetype detection for BASIC is not optimal. Solution: Improve BASIC filetype detection. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Jan 2022 16:00:05 +0100
parents b19230a8d40a
children 839be955609f
comparison
equal deleted inserted replaced
27286:cfbf237ba257 27287:9f72ec92d361
191 191
192 " B 192 " B
193 au BufNewFile,BufRead *.mch,*.ref,*.imp setf b 193 au BufNewFile,BufRead *.mch,*.ref,*.imp setf b
194 194
195 " BASIC or Visual Basic 195 " BASIC or Visual Basic
196 au BufNewFile,BufRead *.bas call dist#ft#FTVB("basic") 196 au BufNewFile,BufRead *.bas call dist#ft#FTbas()
197 au BufNewFile,BufRead *.bi,*.bm call dist#ft#FTbas()
197 198
198 " Visual Basic Script (close to Visual Basic) or Visual Basic .NET 199 " Visual Basic Script (close to Visual Basic) or Visual Basic .NET
199 au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb 200 au BufNewFile,BufRead *.vb,*.vbs,*.dsm,*.ctl setf vb
200 201
201 " IBasic file (similar to QBasic) 202 " IBasic file (similar to QBasic)
202 au BufNewFile,BufRead *.iba,*.ibi setf ibasic 203 au BufNewFile,BufRead *.iba,*.ibi setf ibasic
203 204
204 " FreeBasic file (similar to QBasic) 205 " FreeBasic file (similar to QBasic)
205 au BufNewFile,BufRead *.fb,*.bi setf freebasic 206 au BufNewFile,BufRead *.fb setf freebasic
206 207
207 " Batch file for MSDOS. 208 " Batch file for MSDOS.
208 au BufNewFile,BufRead *.bat,*.sys setf dosbatch 209 au BufNewFile,BufRead *.bat,*.sys setf dosbatch
209 " *.cmd is close to a Batch file, but on OS/2 Rexx files also use *.cmd. 210 " *.cmd is close to a Batch file, but on OS/2 Rexx files also use *.cmd.
210 au BufNewFile,BufRead *.cmd 211 au BufNewFile,BufRead *.cmd