commit fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2
parent 771dad7a057548356a33c499e907bdd6203ec7bb
Author: smjonas <jonas.strittmatter@gmx.de>
Date: Wed, 21 Jun 2023 07:12:53 +0200
fix(filetype): correctly detect bash-fc-{id} files as "sh"
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -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)