vhdl/ghdl checker: use syntastic#makeprg#build

This commit is contained in:
Martin Grenfell 2013-04-04 22:53:40 +01:00
parent 45cb348fd9
commit 128ac00c59

View File

@ -19,7 +19,10 @@ function! SyntaxCheckers_vhdl_ghdl_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_vhdl_ghdl_GetLocList() function! SyntaxCheckers_vhdl_ghdl_GetLocList()
let makeprg = 'ghdl -s '.shellescape(expand('%')) let makeprg = syntastic#makeprg#build({
\ 'exe': 'ghdl',
\ 'args': '-s',
\ 'subchecker': 'ghdl' })
let errorformat = '%f:%l:%c: %m' let errorformat = '%f:%l:%c: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })