aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-27 06:43:52 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-06-27 07:04:54 +0800
commit26331797d23489e7929002dba7d02b82c2ea8bcf (patch)
tree7d6461869cd31f25ea8aaf61dcfe92a5921848af /runtime/lua/vim
parentdda2216188d8f442f99bf3afd1ae90e5bef96420 (diff)
downloadrneovim-26331797d23489e7929002dba7d02b82c2ea8bcf.tar.gz
rneovim-26331797d23489e7929002dba7d02b82c2ea8bcf.tar.bz2
rneovim-26331797d23489e7929002dba7d02b82c2ea8bcf.zip
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 <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua11
1 files changed, 11 insertions, 0 deletions
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',