sh: relax makeprg to catch errors that werent getting parsed

Errors like this were not getting picked up:

    /tmp/foo.sh: line 4: syntax error near unexpected token `)'
    /tmp/foo.sh: line 4: `!!"£!")£!"£echo "foo"'
This commit is contained in:
Martin Grenfell 2012-09-18 00:37:56 +01:00
parent f1d1827852
commit e3c3dda1c1

View File

@ -54,6 +54,6 @@ function! SyntaxCheckers_sh_GetLocList()
endif
let makeprg = s:GetShell() . ' -n ' . shellescape(expand('%'))
let errorformat = '%f: line %l: syntax %trror: %m'
let errorformat = '%f: line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat})
endfunction