]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0738: filetype: rapid files are not recognized v9.1.0738
authorKnoP-01 <knosowski@graeffrobotics.de>
Fri, 20 Sep 2024 20:19:45 +0000 (22:19 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Sep 2024 20:19:45 +0000 (22:19 +0200)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 8f611893c6fc5fb00e85ff44a02b854f33781b2e..7c19fb60f896f42b88e27187c2b210eb08dbf085 100644 (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)
index d1588f3f68f68bdb6181a88ee04dbf6ac6f7892b..b08c0f9b7b882ff6ffd831e6b907a45b6e4a9e84 100644 (file)
@@ -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'],
index 5f20651b159fa482f7f9f3e7bada0395ca36ae8f..ff2b77f0f1bb5a64f5ede2a166be57f46fda2f58 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    738,
 /**/
     737,
 /**/