Permalink
Browse files

corrected erb syntax checking for rails 3.2

  • Loading branch information...
1 parent c1490b3 commit a289515f8303746a1a52cfd4820c2912807acad6 @SKoschnicke committed Nov 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vim/syntax_checkers/eruby.vim
@@ -20,7 +20,7 @@ if !executable("ruby") || !executable("cat")
endif
function! SyntaxCheckers_eruby_GetLocList()
- let makeprg='cat '. shellescape(expand("%")) . ' \| RUBYOPT= ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| RUBYOPT= ruby -c'
+ let makeprg='sed "s/<\%=/<\%/g" '. shellescape(expand("%")) . ' \| RUBYOPT= ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| RUBYOPT= ruby -c'
let errorformat='%-GSyntax OK,%E-:%l: syntax error\, %m,%Z%p^,%W-:%l: warning: %m,%Z%p^,%-C%.%#'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

0 comments on commit a289515

Please sign in to comment.