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

Commit

Permalink
Fix shebang parsing for escript.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Jan 14, 2014
1 parent 12de86a commit 47f0541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax_checkers/erlang/escript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47f0541

Please sign in to comment.