mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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:
committed by
Christian Brabandt
parent
87b65652e8
commit
fdcb08264d
@ -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)
|
||||
|
@ -603,6 +603,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
radiance: ['file.rad', 'file.mat'],
|
||||
raku: ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
||||
raml: ['file.raml'],
|
||||
rapid: ['file.sysx', 'file.Sysx', 'file.SysX', 'file.SYSx', 'file.SYSX', 'file.modx', 'file.Modx', 'file.ModX', 'file.MODx', 'file.MODX'],
|
||||
rasi: ['file.rasi'],
|
||||
ratpoison: ['.ratpoisonrc', 'ratpoisonrc'],
|
||||
rbs: ['file.rbs'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
738,
|
||||
/**/
|
||||
737,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user