diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-11 19:40:57 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-11 19:40:57 +0000 |
commit | ecbb27680563a50d4dd981f968d659ef20bfbe30 (patch) | |
tree | 3e60f1ad7840dce1351819cd191a4c7ca0a7330e /ale_linters/scala/scalac.vim | |
parent | c33602534e205aa677521ce49a8054588d88bdc2 (diff) | |
download | ale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip |
Replace every stdin-wrapper script with the new %t formatting support
Diffstat (limited to 'ale_linters/scala/scalac.vim')
-rw-r--r-- | ale_linters/scala/scalac.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/scala/scalac.vim b/ale_linters/scala/scalac.vim index c2e7543c..6f462068 100644 --- a/ale_linters/scala/scalac.vim +++ b/ale_linters/scala/scalac.vim @@ -1,4 +1,3 @@ -" vim: set et: " Author: Zoltan Kalmar - https://github.com/kalmiz " Description: Basic scala support using scalac @@ -21,8 +20,10 @@ function! ale_linters#scala#scalac#Handle(buffer, lines) abort let l:text = l:match[3] let l:type = l:match[2] ==# 'error' ? 'E' : 'W' let l:col = 0 + if l:ln + 1 < len(a:lines) let l:col = stridx(a:lines[l:ln + 1], '^') + if l:col == -1 let l:col = 0 endif @@ -47,6 +48,6 @@ call ale#linter#Define('scala', { \ 'name': 'scalac', \ 'executable': 'scalac', \ 'output_stream': 'stderr', -\ 'command': g:ale#util#stdin_wrapper . ' .scala scalac -Ystop-after:parser', +\ 'command': 'scalac -Ystop-after:parser %t', \ 'callback': 'ale_linters#scala#scalac#Handle', \}) |