From 26331797d23489e7929002dba7d02b82c2ea8bcf Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 27 Jun 2026 06:43:52 +0800 Subject: vim-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: vim/vim#16287 closes: vim/vim#20615 https://github.com/vim/vim/commit/758543dcb7527e4d4bfe3f51196c9134632b3a7a Co-authored-by: Wu, Zhenyu --- runtime/lua/vim/filetype.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 133d2b0d30..fbb1ee3237 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1181,6 +1181,16 @@ local extension = { ss = 'scheme', scm = 'scheme', sld = 'scheme', + stwm = 'scheme', + stl = 'scheme', + stxt = 'scheme', + sprite = 'scheme', + strf = 'scheme', + satc = 'scheme', + stcd = 'scheme', + stf = 'scheme', + stcp = 'scheme', + music = 'scheme', stsg = 'scheme', sce = 'scilab', sci = 'scilab', @@ -2825,6 +2835,7 @@ local pattern = { end), ['/queries/.*%.scm$'] = 'query', -- treesitter queries (Neovim only) [',v$'] = 'rcs', + ['^supertux2/.*/info$'] = 'scheme', ['^svn%-commit.*%.tmp$'] = 'svn', ['%.swift%.gyb$'] = 'swiftgyb', ['^vivado.*%.jou$'] = 'tcl', -- cgit