vim-patch:9.1.1730: filetype: vivado journal/log files are not recognized (#35613)

Problem:  filetype: vivado journal/log files are not recognized
Solution: Detect vivado*.{jou,log} as tcl filetype (Wu Zhenyu).

closes: vim/vim#18191

9a6cafdc1c

Also fix missing anchor in the pattern from the port of patch 9.1.1602.

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq
2025-09-04 07:16:47 +08:00
committed by GitHub
parent bf5f7c1591
commit 17da1ad8f4
2 changed files with 5 additions and 2 deletions

View File

@@ -2348,7 +2348,7 @@ local pattern = {
},
['require'] = {
['%-requirements%.txt$'] = 'requirements',
['requirements%-.*%.txt$'] = 'requirements',
['^requirements%-.*%.txt$'] = 'requirements',
['^requirements/.*%.txt$'] = 'requirements',
['^requires/.*%.txt$'] = 'requirements',
},
@@ -2530,6 +2530,8 @@ local pattern = {
[',v$'] = 'rcs',
['^svn%-commit.*%.tmp$'] = 'svn',
['%.swift%.gyb$'] = 'swiftgyb',
['^vivado.*%.jou$'] = 'tcl',
['^vivado.*%.log$'] = 'tcl',
['termcap'] = starsetf(function(_path, _bufnr)
return require('vim.filetype.detect').printcap('term')
end),