mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:6ce07edd600e (#28275)
runtime(compiler): fix inaccuracies in pandoc compiler (vim/vim#14467)
as kindly pointed out by @Freed-Wu
6ce07edd60
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
This commit is contained in:
parent
7aa56370f3
commit
1746b9234c
@ -9,10 +9,6 @@ if exists("current_compiler")
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
||||||
command -nargs=* CompilerSet setlocal <args>
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:keepcpo = &cpo
|
let s:keepcpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
@ -40,9 +36,9 @@ silent! function s:PandocFiletype(filetype) abort
|
|||||||
elseif ft ==# 'text' || empty(ft)
|
elseif ft ==# 'text' || empty(ft)
|
||||||
return 'markdown'
|
return 'markdown'
|
||||||
elseif index(s:supported_filetypes, &ft) >= 0
|
elseif index(s:supported_filetypes, &ft) >= 0
|
||||||
return ft
|
return ft
|
||||||
else
|
else
|
||||||
echomsg 'Unsupported filetype: ' . a:filetype ', falling back to Markdown as input format!'
|
echomsg 'Unsupported filetype: ' . ft . ', falling back to Markdown as input format!'
|
||||||
return 'markdown'
|
return 'markdown'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user