diff --git a/syntax_checkers/scala.vim b/syntax_checkers/scala.vim index 3332dda9..2013bbd3 100644 --- a/syntax_checkers/scala.vim +++ b/syntax_checkers/scala.vim @@ -11,7 +11,7 @@ "============================================================================ "bail if the user doesnt have the scala binary installed -if !executable("scala") +if !executable("scalac") finish endif @@ -20,7 +20,7 @@ if !exists("g:syntastic_scala_options") endif function! SyntaxCheckers_scala_GetLocList() - let makeprg = 'scala '. g:syntastic_scala_options .' '. shellescape(expand('%')) . ' /dev/null' + let makeprg = 'scalac -Ystop-after:parser '. g:syntastic_scala_options .' '. shellescape(expand('%')) let errorformat = '%f\:%l: %trror: %m'