mirror of
https://github.com/amix/vimrc
synced 2025-06-30 20:05:01 +08:00
Replace Unicode dashes with ASCII ones (#722)
This commit is contained in:
@ -10,8 +10,8 @@ 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(%{<%=},%{<%}), trim_mode: %{-}).src') . '< %t | ruby -c'
|
||||
" 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') . '< %t | ruby -c'
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('eruby', {
|
||||
|
Reference in New Issue
Block a user