vim-patch:9.1.0235: filetype: supertux files are not recognized

Problem:  filetype: supertux files are not recognized
Solution: Supertux uses lisp to store hotkeys in config and game stage information,
          so add a pattern for supertux files.
          (Wu, Zhenyu)

Reference: https://github.com/SuperTux/supertux/wiki/S-Expression

closes: vim/vim#14356

4ff83b904e

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason
2024-03-31 19:03:13 +02:00
parent c24dcb1bea
commit 96d77b2051
2 changed files with 3 additions and 1 deletions

View File

@@ -620,6 +620,7 @@ local extension = {
el = 'lisp', el = 'lisp',
lsp = 'lisp', lsp = 'lisp',
asd = 'lisp', asd = 'lisp',
stsg = 'lisp',
lt = 'lite', lt = 'lite',
lite = 'lite', lite = 'lite',
livemd = 'livebook', livemd = 'livebook',
@@ -1761,6 +1762,7 @@ local pattern = {
['.*/etc/.*limits%.conf'] = 'limits', ['.*/etc/.*limits%.conf'] = 'limits',
['.*/etc/limits'] = 'limits', ['.*/etc/limits'] = 'limits',
['.*/etc/.*limits%.d/.*%.conf'] = 'limits', ['.*/etc/.*limits%.d/.*%.conf'] = 'limits',
['.*/supertux2/config'] = 'lisp',
['.*/LiteStep/.*/.*%.rc'] = 'litestep', ['.*/LiteStep/.*/.*%.rc'] = 'litestep',
['.*/etc/login%.access'] = 'loginaccess', ['.*/etc/login%.access'] = 'loginaccess',
['.*/etc/login%.defs'] = 'logindefs', ['.*/etc/login%.defs'] = 'logindefs',

View File

@@ -373,7 +373,7 @@ func s:GetFilenameChecks() abort
\ 'limits': ['/etc/limits', '/etc/anylimits.conf', '/etc/anylimits.d/file.conf', '/etc/limits.conf', '/etc/limits.d/file.conf', '/etc/some-limits.conf', '/etc/some-limits.d/file.conf', 'any/etc/limits', 'any/etc/limits.conf', 'any/etc/limits.d/file.conf', 'any/etc/some-limits.conf', 'any/etc/some-limits.d/file.conf'], \ 'limits': ['/etc/limits', '/etc/anylimits.conf', '/etc/anylimits.d/file.conf', '/etc/limits.conf', '/etc/limits.d/file.conf', '/etc/some-limits.conf', '/etc/some-limits.d/file.conf', 'any/etc/limits', 'any/etc/limits.conf', 'any/etc/limits.d/file.conf', 'any/etc/some-limits.conf', 'any/etc/some-limits.d/file.conf'],
\ 'liquidsoap': ['file.liq'], \ 'liquidsoap': ['file.liq'],
\ 'liquid': ['file.liquid'], \ 'liquid': ['file.liquid'],
\ 'lisp': ['file.lsp', 'file.lisp', 'file.asd', 'file.el', 'file.cl', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc'], \ 'lisp': ['file.lsp', 'file.lisp', 'file.asd', 'file.el', 'file.cl', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc', 'file.stsg', 'any/local/share/supertux2/config'],
\ 'lite': ['file.lite', 'file.lt'], \ 'lite': ['file.lite', 'file.lt'],
\ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'], \ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
\ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'], \ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'],