mirror of
https://github.com/neovim/neovim.git
synced 2026-07-09 19:09:39 +00:00
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
758543dcb7
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user