Fix shebang parsing for escript.
This commit is contained in:
parent
12de86a649
commit
47f054112b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user