Fix shebang parsing for escript.

This commit is contained in:
LCD 47 2014-01-14 20:33:49 +02:00
parent 12de86a649
commit 47f054112b

View File

@ -30,7 +30,7 @@ function! SyntaxCheckers_erlang_escript_GetLocList() dict
endif
let shebang = syntastic#util#parseShebang()
if shebang['exe'] ==# 'escript'
if shebang['exe'] =~# '\m\<escript$' || (shebang['exe'] ==# '/usr/bin/env' && shebang['args'][0] ==# 'escript')
let args = '-s'
let post_args = ''
else