diff options
author | Eddie Lebow <elebow@users.noreply.github.com> | 2017-11-16 23:02:30 -0500 |
---|---|---|
committer | Eddie Lebow <elebow@users.noreply.github.com> | 2017-11-16 23:10:25 -0500 |
commit | b390c696424f51b0d8a198ce252ae14d0b0cd8aa (patch) | |
tree | ca1ad27977580bb107b51b9177f98a2873ec4fd6 /ale_linters/eruby/erubis.vim | |
parent | 1f4f19cbd422e30ae95e63df6fae26d99651dc03 (diff) | |
download | ale-b390c696424f51b0d8a198ce252ae14d0b0cd8aa.zip |
erb, erubis: Redirect file into first command.
The previous version relied on a zsh-specific behavior where
`<filename` after a pipe could redirect to the first command. This
is the standard way to do it.
Diffstat (limited to 'ale_linters/eruby/erubis.vim')
-rw-r--r-- | ale_linters/eruby/erubis.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/eruby/erubis.vim b/ale_linters/eruby/erubis.vim index ac356aeb..c9c8ac1e 100644 --- a/ale_linters/eruby/erubis.vim +++ b/ale_linters/eruby/erubis.vim @@ -11,7 +11,7 @@ function! ale_linters#eruby#erubis#GetCommand(buffer) abort " Rails-flavored eRuby does not comply with the standard as understood by " Erubis, so we'll have to do some substitution. This does not reduce the " effectiveness of the linter—the translated code is still evaluated. - return 'ruby -r erubis -e ' . ale#Escape('puts Erubis::Eruby.new($stdin.read.gsub(%{<%=},%{<%})).src') . ' | ruby -c' + return 'ruby -r erubis -e ' . ale#Escape('puts Erubis::Eruby.new($stdin.read.gsub(%{<%=},%{<%})).src') . '< %t | ruby -c' endfunction call ale#linter#Define('eruby', { |