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

https://github.com/vim/vim/commit/9a6cafdc1ca51653cc37ab896a27db70d6cb1b15

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:
zeertzjqandWu, Zhenyu authored and GitHub committed 2025-09-04 07:16:47 +08:00
1 parent bf5f7c1591
commit 17da1ad8f4
2 files changed
+5 -2

No files matched your search

+3 -1
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),
+2 -1
View File
@@ -820,7 +820,8 @@ func s:GetFilenameChecks() abort
\ 'tal': ['file.tal'],
\ 'taskdata': ['pending.data', 'completed.data', 'undo.data'],
\ 'taskedit': ['file.task'],
\ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history', '.xsctcmdhistory', '.xsdbcmdhistory'],
\ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history',
\ '.xsctcmdhistory', '.xsdbcmdhistory', 'vivado.jou', 'vivado.log'],
\ 'teal': ['file.tl'],
\ 'templ': ['file.templ'],
\ 'template': ['file.tmpl'],