mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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:
@@ -620,6 +620,7 @@ local extension = {
|
||||
el = 'lisp',
|
||||
lsp = 'lisp',
|
||||
asd = 'lisp',
|
||||
stsg = 'lisp',
|
||||
lt = 'lite',
|
||||
lite = 'lite',
|
||||
livemd = 'livebook',
|
||||
@@ -1761,6 +1762,7 @@ local pattern = {
|
||||
['.*/etc/.*limits%.conf'] = 'limits',
|
||||
['.*/etc/limits'] = 'limits',
|
||||
['.*/etc/.*limits%.d/.*%.conf'] = 'limits',
|
||||
['.*/supertux2/config'] = 'lisp',
|
||||
['.*/LiteStep/.*/.*%.rc'] = 'litestep',
|
||||
['.*/etc/login%.access'] = 'loginaccess',
|
||||
['.*/etc/login%.defs'] = 'logindefs',
|
||||
|
@@ -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'],
|
||||
\ 'liquidsoap': ['file.liq'],
|
||||
\ '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'],
|
||||
\ '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'],
|
||||
|
Reference in New Issue
Block a user