mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +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),
|
||||
|
||||
Reference in New Issue
Block a user