summaryrefslogtreecommitdiff
path: root/ale_linters/elm
diff options
context:
space:
mode:
authorJasper Woudenberg <mail@jasperwoudenberg.com>2017-06-26 15:37:04 +0200
committerJasper Woudenberg <mail@jasperwoudenberg.com>2017-06-27 20:16:29 +0200
commit72161b82ef29a7f6a1eb575533f61abd6ad13b53 (patch)
treebaf6b45cdc82dc41e8d51d58b85c49cbcc71b8bd /ale_linters/elm
parentc2f69b77501d098fdd973c332d08e18d8e30abd0 (diff)
downloadale-72161b82ef29a7f6a1eb575533f61abd6ad13b53.zip
Elm linter shows full error ranges
Diffstat (limited to 'ale_linters/elm')
-rw-r--r--ale_linters/elm/make.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim
index da81287c..0a570ff6 100644
--- a/ale_linters/elm/make.vim
+++ b/ale_linters/elm/make.vim
@@ -23,6 +23,8 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:error.region.start.line,
\ 'col': l:error.region.start.column,
+ \ 'end_lnum': l:error.region.end.line,
+ \ 'end_col': l:error.region.end.column,
\ 'type': (l:error.type ==? 'error') ? 'E' : 'W',
\ 'text': l:error.overview,
\ 'detail': l:error.overview . "\n\n" . l:error.details