mirror of
https://github.com/vim/vim.git
synced 2025-08-26 20:03:41 -04:00
patch 9.1.0958: filetype: supertux2 config files detected as lisp
Problem: filetype: supertux2 config files detected as lisp Solution: detect supertux2 config files as scheme instead (Wu, Zhenyu) References: https://github.com/SuperTux/supertux/wiki/S-Expression supertux uses #t and #f as bool type, which is same as scheme, not common lisp closes: #16287 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
084529c03d
commit
e62d93ead1
@ -1384,9 +1384,9 @@ au BufNewFile,BufRead *.ly,*.ily setf lilypond
|
|||||||
" Lisp (*.el = ELisp)
|
" Lisp (*.el = ELisp)
|
||||||
" *.jl was removed, it's also used for Julia, better skip than guess wrong.
|
" *.jl was removed, it's also used for Julia, better skip than guess wrong.
|
||||||
if has("fname_case")
|
if has("fname_case")
|
||||||
au BufNewFile,BufRead *.lsp,*.lisp,*.asd,*.el,*.L,.emacs,.sawfishrc,*.stsg,*/supertux2/config setf lisp
|
au BufNewFile,BufRead *.lsp,*.lisp,*.asd,*.el,*.L,.emacs,.sawfishrc setf lisp
|
||||||
else
|
else
|
||||||
au BufNewFile,BufRead *.lsp,*.lisp,*.asd,*.el,.emacs,.sawfishrc,*.stsg,*/supertux2/config setf lisp
|
au BufNewFile,BufRead *.lsp,*.lisp,*.asd,*.el,.emacs,.sawfishrc setf lisp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" *.cl = Common Lisp or OpenCL
|
" *.cl = Common Lisp or OpenCL
|
||||||
@ -2314,8 +2314,8 @@ au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit setf zsh
|
|||||||
" Salt state files
|
" Salt state files
|
||||||
au BufNewFile,BufRead *.sls setf salt
|
au BufNewFile,BufRead *.sls setf salt
|
||||||
|
|
||||||
" Scheme ("racket" patterns are now separate, see above)
|
" Scheme, Supertux configuration ("racket" patterns are now separate, see above)
|
||||||
au BufNewFile,BufRead *.scm,*.ss,*.sld setf scheme
|
au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config setf scheme
|
||||||
|
|
||||||
" Screen RC
|
" Screen RC
|
||||||
au BufNewFile,BufRead .screenrc,screenrc setf screen
|
au BufNewFile,BufRead .screenrc,screenrc setf screen
|
||||||
|
@ -429,7 +429,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
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', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc', 'file.stsg', 'any/local/share/supertux2/config'],
|
lisp: ['file.lsp', 'file.lisp', 'file.asd', 'file.el', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc'],
|
||||||
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'],
|
||||||
@ -671,7 +671,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
sather: ['file.sa'],
|
sather: ['file.sa'],
|
||||||
sbt: ['file.sbt'],
|
sbt: ['file.sbt'],
|
||||||
scala: ['file.scala'],
|
scala: ['file.scala'],
|
||||||
scheme: ['file.scm', 'file.ss', 'file.sld'],
|
scheme: ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config'],
|
||||||
scilab: ['file.sci', 'file.sce'],
|
scilab: ['file.sci', 'file.sce'],
|
||||||
screen: ['.screenrc', 'screenrc'],
|
screen: ['.screenrc', 'screenrc'],
|
||||||
scss: ['file.scss'],
|
scss: ['file.scss'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
958,
|
||||||
/**/
|
/**/
|
||||||
957,
|
957,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user