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:
Christian Clason
2023-06-24 13:41:50 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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)