patch 9.2.0716: filetype: not all supertux files are recognized
Commit:
https://github.com/vim/vim/commit/758543dcb7527e4d4bfe3f51196c9134632b3a7a
Author: Wu, Zhenyu <
wuzh...@ustc.edu>
Date: Wed Jun 24 17:34:25 2026 +0000
patch 9.2.0716: filetype: not all supertux files are recognized
Problem: filetype: not all supertux files are recognized
Solution: Detect more supertux related files as scheme filetype
(Wu Zhenyu)
levels:
*.stwm: supertux world map
https://github.com/SuperTux/supertux/wiki/Worldmap-Format
*.stl: supertux level
https://github.com/SuperTux/supertux/wiki/Level-Format
*.stxt: supertux scrolling texts
https://github.com/SuperTux/supertux/wiki/File_formats#scrolling-texts
images:
*.sprite: supertux sprite
https://github.com/SuperTux/supertux/wiki/Sprite
*.strf: supertux tileset
https://github.com/SuperTux/supertux/wiki/Tileset
*.satc: supertux autotiles configuration
*.stcd: supertux converter data
font:
*.stf: supetux font
particles:
*.stcp: supertux custom particle
music:
*.music: supertux music
config:
~/.local/share/supertux2/config: supertux config
https://github.com/SuperTux/supertux/wiki/S-Expression#supertux-config-file
*.stsg: supertux save game
info:
info:
https://github.com/SuperTux/supertux/wiki/File_formats#level-subsets
related: #16287
closes: #20615
Signed-off-by: Wu, Zhenyu <
wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 680b62b37..efcea55e3 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1062,7 +1062,7 @@ au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump,.zsh_history se
au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit setf zsh
" Scheme, Supertux configuration, Lips.js history, Guile init file ("racket" patterns are now separate, see above)
-au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config,.lips_repl_history,.guile setf scheme
+au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stwm,*.stl,*.stxt,*.sprite,*.strf,*.satc,*.stcd,*.stf,*.stcp,*.music,*.stsg,*/supertux2/config,supertux2/*/info,.lips_repl_history,.guile setf scheme
" SiSU
au BufNewFile,BufRead *.sst.meta,*.-sst.meta,*._sst.meta setf sisu
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 61a72fd1f..7924789e2 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -729,7 +729,7 @@ def s:GetFilenameChecks(): dict<list<string>>
sass: ['file.sass'],
sbt: ['file.sbt'],
scala: ['file.scala', 'file.mill'],
- scheme: ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history', '.guile'],
+ scheme: ['file.scm', 'file.ss', 'file.sld', 'file.stwm', 'file.stl', 'file.stxt', 'file.sprite', 'file.strf', 'file.satc', 'file.stcd', 'file.stf', 'file.stcp', 'file.music', 'file.stsg', 'any/local/share/supertux2/config', 'supertux2/levels/world1/info', '.lips_repl_history', '.guile'],
scilab: ['file.sci', 'file.sce'],
screen: ['.screenrc', 'screenrc'],
scss: ['file.scss'],
diff --git a/src/version.c b/src/version.c
index de6662811..aebc46107 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 716,
/**/
715,
/**/