mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
Merge pull request #24082 from smjonas/fix_24064
fix(filetype): correctly detect bash-fc-{id} files as "sh" (vim-patch:9.0.1644)
This commit is contained in:
@@ -2189,7 +2189,7 @@ local pattern = {
|
||||
['.*/etc/profile'] = function(path, bufnr)
|
||||
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
|
||||
end,
|
||||
['bash%-fc[%-%.]'] = function(path, bufnr)
|
||||
['bash%-fc[%-%.].*'] = function(path, bufnr)
|
||||
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
|
||||
end,
|
||||
['%.tcshrc.*'] = function(path, bufnr)
|
||||
|
||||
Reference in New Issue
Block a user