Merge pull request #496 from mixvin/patch-1

Added explicit call of escript
This commit is contained in:
Martin Grenfell 2013-02-10 15:07:33 -08:00
commit 3870ae133b

View File

@ -29,10 +29,10 @@ function! SyntaxCheckers_erlang_escript_GetLocList()
if match(shebang, 'escript') >= 0 if match(shebang, 'escript') >= 0
let makeprg = 'escript -s '.shellescape(expand('%:p')) let makeprg = 'escript -s '.shellescape(expand('%:p'))
else else
let makeprg = s:check_file . ' '. shellescape(expand('%:p')).' '.g:syntastic_erlc_include_path let makeprg = 'escript ' . s:check_file . ' '. shellescape(expand('%:p')).' '.g:syntastic_erlc_include_path
endif endif
else else
let makeprg = s:check_file . ' ' . shellescape(expand('%:p')).' '.g:syntastic_erlc_include_path let makeprg = 'escript ' . s:check_file . ' ' . shellescape(expand('%:p')).' '.g:syntastic_erlc_include_path
endif endif
let errorformat = '%f:%l:\ %tarning:\ %m,%E%f:%l:\ %m' let errorformat = '%f:%l:\ %tarning:\ %m,%E%f:%l:\ %m'