Merge pull request #29182 from neovim/backport-29181-to-release-0.10

fix(filetype): fix typos in filetype detection
This commit is contained in:
zeertzjq 2024-06-04 17:39:29 +08:00 committed by GitHub
commit f1fba12803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -594,7 +594,7 @@ function M.frm(_, bufnr)
end
--- @type vim.filetype.mapfn
function M.fvwm_1(_, _)
function M.fvwm_v1(_, _)
return 'fvwm', function(bufnr)
vim.b[bufnr].fvwm_version = 1
end
@ -1331,7 +1331,7 @@ end
function M.sgml(_, bufnr)
local lines = table.concat(getlines(bufnr, 1, 5))
if lines:find('linuxdoc') then
return 'smgllnx'
return 'sgmllnx'
elseif lines:find('<!DOCTYPE.*DocBook') then
return 'docbk',
function(b)