1
0
forked from aniani/vim

patch 9.1.0738: filetype: rapid files are not recognized

Problem:  filetype: rapid files are not recognized
Solution: detect '*.sysx' and '*.modx' as rapid filetype
          (KnoP-01)

closes: #15669

Signed-off-by: KnoP-01 <knosowski@graeffrobotics.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
KnoP-01
2024-09-20 22:19:45 +02:00
committed by Christian Brabandt
parent 87b65652e8
commit fdcb08264d
3 changed files with 16 additions and 5 deletions

View File

@@ -239,7 +239,11 @@ au BufNewFile,BufRead *.cmd
" ABB RAPID or Batch file for MSDOS.
au BufNewFile,BufRead *.sys call dist#ft#FTsys()
if has("fname_case")
au BufNewFile,BufRead *.Sys,*.SYS call dist#ft#FTsys()
au BufNewFile,BufRead *.Sys,*.SYS call dist#ft#FTsys()
endif
au BufNewFile,BufRead *.sysx setf rapid
if has("fname_case")
au BufNewFile,BufRead *.sysX,*.Sysx,*.SysX,*.SYSX setf rapid
endif
" Batch file for 4DOS
@@ -1243,9 +1247,9 @@ au BufNewFile,BufRead *.src call dist#ft#FTsrc()
au BufNewFile,BufRead *.dat call dist#ft#FTdat()
au BufNewFile,BufRead *.sub setf krl
if has("fname_case")
au BufNewFile,BufRead *.Src,*.SRC call dist#ft#FTsrc()
au BufNewFile,BufRead *.Dat,*.DAT call dist#ft#FTdat()
au BufNewFile,BufRead *.Sub,*.SUB setf krl
au BufNewFile,BufRead *.Src,*.SRC call dist#ft#FTsrc()
au BufNewFile,BufRead *.Dat,*.DAT call dist#ft#FTdat()
au BufNewFile,BufRead *.Sub,*.SUB setf krl
endif
" Kimwitu[++]
@@ -1498,7 +1502,11 @@ au BufNewFile,BufRead *.mmp setf mmp
" ABB Rapid, Modula-2, Modsim III or LambdaProlog
au BufNewFile,BufRead *.mod call dist#ft#FTmod()
if has("fname_case")
au BufNewFile,BufRead *.Mod,*.MOD call dist#ft#FTmod()
au BufNewFile,BufRead *.Mod,*.MOD call dist#ft#FTmod()
endif
au BufNewFile,BufRead *.modx setf rapid
if has("fname_case")
au BufNewFile,BufRead *.modX,*.Modx,*.ModX,*.MODX setf rapid
endif
" Modula-3 (.m3, .i3, .mg, .ig)