mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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:
@@ -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),
|
||||
|
@@ -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'],
|
||||
|
Reference in New Issue
Block a user