mirror of
https://github.com/neovim/neovim.git
synced 2026-05-01 03:24:49 +00:00
vim-patch:9.1.1030: filetype: setting bash filetype is backwards incompatible
Problem: filetype: setting bash filetype is backwards incompatible
Solution: revert patch v9.1.0965, detect bash scripts again as sh
filetype
This reverts commit b9b762c21f2b61e0e7d8fee43d4d3dc8ecffd721.
related: vim/vim#16309
727c567a09
Co-authored-by: Christian Brabandt <cb@256bit.org>
vim-patch:9.1.1033: tests: shaderslang was removed from test_filetype erroneously
Problem: tests: shaderslang was removed from test_filetype erroneously
(Christian Clason, after v9.1.1030)
Solution: restore the test
1d2867df0c
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Clason
parent
b172dd57fa
commit
5b025b499e
@@ -1527,7 +1527,6 @@ local function sh(path, contents, name)
|
||||
vim.b[b].is_kornshell = nil
|
||||
vim.b[b].is_sh = nil
|
||||
end
|
||||
return M.shell(path, contents, 'bash'), on_detect
|
||||
-- Ubuntu links sh to dash
|
||||
elseif matchregex(name, [[\<\(sh\|dash\)\>]]) then
|
||||
on_detect = function(b)
|
||||
|
||||
Reference in New Issue
Block a user