Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 47f0541

Browse files
committed
Fix shebang parsing for escript.
1 parent 12de86a commit 47f0541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax_checkers/erlang/escript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function! SyntaxCheckers_erlang_escript_GetLocList() dict
3030
endif
3131

3232
let shebang = syntastic#util#parseShebang()
33-
if shebang['exe'] ==# 'escript'
33+
if shebang['exe'] =~# '\m\<escript$' || (shebang['exe'] ==# '/usr/bin/env' && shebang['args'][0] ==# 'escript')
3434
let args = '-s'
3535
let post_args = ''
3636
else

0 commit comments

Comments
 (0)