mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(filetype): correctly detect bash-fc-{id} files as "sh"
This commit is contained in:
@ -2188,7 +2188,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