vim-patch:9.2.0728: filetype: supertux info pattern is relative to current dir

Problem:  filetype: supertux info pattern is relative to current
          directory (after 9.2.0716).
Solution: Add `*/` to the start of the pattern (zeertzjq)

closes: vim/vim#20629

c30ee2efa9
This commit is contained in:
zeertzjq
2026-06-27 06:46:52 +08:00
parent 26331797d2
commit db55c537cb
2 changed files with 2 additions and 2 deletions

View File

@@ -2835,7 +2835,7 @@ local pattern = {
end),
['/queries/.*%.scm$'] = 'query', -- treesitter queries (Neovim only)
[',v$'] = 'rcs',
['^supertux2/.*/info$'] = 'scheme',
['/supertux2/.*/info$'] = 'scheme',
['^svn%-commit.*%.tmp$'] = 'svn',
['%.swift%.gyb$'] = 'swiftgyb',
['^vivado.*%.jou$'] = 'tcl',

View File

@@ -728,7 +728,7 @@ func s:GetFilenameChecks() abort
\ 'sass': ['file.sass'],
\ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala', 'file.mill'],
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stwm', 'file.stl', 'file.stxt', 'file.sprite', 'file.strf', 'file.satc', 'file.stcd', 'file.stf', 'file.stcp', 'file.music', 'file.stsg', 'any/local/share/supertux2/config', 'supertux2/levels/world1/info', '.lips_repl_history', '.guile'],
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stwm', 'file.stl', 'file.stxt', 'file.sprite', 'file.strf', 'file.satc', 'file.stcd', 'file.stf', 'file.stcp', 'file.music', 'file.stsg', 'any/local/share/supertux2/config', 'any/supertux2/levels/world1/info', '.lips_repl_history', '.guile'],
\ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'],
\ 'scss': ['file.scss'],