1
0
mirror of https://github.com/amix/vimrc synced 2025-07-04 23:15:01 +08:00

Replace Unicode dashes with ASCII ones

This commit is contained in:
Wu Tingfeng
2022-12-09 04:40:28 +08:00
parent 2b653aa950
commit e4b8bdfb5a
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,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 linterthe translated code is still evaluated.
" 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