summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-19 00:02:35 +0000
committerw0rp <devw0rp@gmail.com>2017-11-19 00:02:35 +0000
commit40e26f0bc2a00d25defe190bc277a0cf6ea71479 (patch)
tree496ae3b7be63d46f15c376775fdc5b73b27686d5 /ale_linters
parent41cb174f3aeaa38e3d558a197a194c0161fa5b66 (diff)
downloadale-40e26f0bc2a00d25defe190bc277a0cf6ea71479.zip
#852 - Capture error codes for luacheck
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/lua/luacheck.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/lua/luacheck.vim b/ale_linters/lua/luacheck.vim
index 9f9ca4c4..725153c6 100644
--- a/ale_linters/lua/luacheck.vim
+++ b/ale_linters/lua/luacheck.vim
@@ -35,8 +35,9 @@ function! ale_linters#lua#luacheck#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'col': l:match[2] + 0,
- \ 'text': l:match[3] . l:match[4] . ': ' . l:match[5],
\ 'type': l:match[3],
+ \ 'code': l:match[3] . l:match[4],
+ \ 'text': l:match[5],
\})
endfor