fix(filetype): fix typos in filetype detection

This commit is contained in:
Evgeni Chasnovski 2024-06-04 11:55:59 +03:00 committed by Christian Clason
parent 46b69aaf14
commit aa9f21ee95

View File

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