| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| if exists("current_compiler") |
| finish |
| endif |
|
|
| let s:keepcpo = &cpo |
| set cpo&vim |
|
|
| let current_compiler = 'groff' |
|
|
| silent! function s:groff_compiler_lang() |
| let lang = get(b:, 'groff_compiler_lang', |
| \ &spell ? matchstr(&spelllang, '^\a\a') : '') |
| if lang ==# 'en' | let lang = '' | endif |
| return empty(lang) ? '' : '-m'..lang |
| endfunction |
|
|
| |
| execute 'CompilerSet makeprg=groff'..escape( |
| \ ' '..s:groff_compiler_lang().. |
| \ ' -K'..get(b:, 'groff_compiler_encoding', get(g:, 'groff_compiler_encoding', 'utf8')).. |
| \ ' '..get(b:, 'groff_compiler_args', get(g:, 'groff_compiler_args', '')).. |
| \ ' -mom -T$* -- %:S > %:r:S.$*', ' \|"') |
| |
| |
| CompilerSet errorformat=%o:<standard\ input>\ (%f):%l:%m, |
| \%o:\ <standard\ input>\ (%f):%l:%m, |
| \%o:%f:%l:%m, |
| \%o:\ %f:%l:%m, |
| \%f:%l:\ macro\ %trror:%m, |
| \%f:%l:%m, |
| \%W%tarning:\ file\ '%f'\\,\ around\ line\ %l:,%Z%m |
|
|
| let &cpo = s:keepcpo |
| unlet s:keepcpo |
|
|