summaryrefslogtreecommitdiff
path: root/ale_linters/eruby/erb.vim
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-11-17 09:27:40 +0000
committerGitHub <noreply@github.com>2017-11-17 09:27:40 +0000
commita139b387c818a5bf05ed38381a99341aa9950aba (patch)
treeca1ad27977580bb107b51b9177f98a2873ec4fd6 /ale_linters/eruby/erb.vim
parent1f4f19cbd422e30ae95e63df6fae26d99651dc03 (diff)
parentb390c696424f51b0d8a198ce252ae14d0b0cd8aa (diff)
downloadale-a139b387c818a5bf05ed38381a99341aa9950aba.zip
Merge pull request #1141 from elebow/eruby-fix-command-file-redir
erb, erubis: Redirect file into first command.
Diffstat (limited to 'ale_linters/eruby/erb.vim')
-rw-r--r--ale_linters/eruby/erb.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/eruby/erb.vim b/ale_linters/eruby/erb.vim
index 5d0b4003..65de18ee 100644
--- a/ale_linters/eruby/erb.vim
+++ b/ale_linters/eruby/erb.vim
@@ -11,7 +11,7 @@ function! ale_linters#eruby#erb#GetCommand(buffer) abort
" Rails-flavored eRuby does not comply with the standard as understood by
" ERB, 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 erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), nil, %{-}).src') . ' | ruby -c'
+ return 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), nil, %{-}).src') . '< %t | ruby -c'
endfunction
call ale#linter#Define('eruby', {