From 72b145cdf7ccecb935a48f0486c41a0df3aa8859 Mon Sep 17 00:00:00 2001 From: cos Date: Fri, 4 Feb 2022 10:25:47 +0100 Subject: fixup, wip: Attempt at making cargo working on whole project as documented Add comments referencing documentation. --- autoload/ale/handlers/rust.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/ale/handlers/rust.vim b/autoload/ale/handlers/rust.vim index 895c7878..60656577 100644 --- a/autoload/ale/handlers/rust.vim +++ b/autoload/ale/handlers/rust.vim @@ -28,6 +28,9 @@ endfunction function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort let l:output = [] + " Format of JSON + " rustc: https://doc.rust-lang.org/rustc/json.html + " cargo: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-messages for l:errorline in a:lines " ignore everything that is not JSON if l:errorline !~# '^{' @@ -60,6 +63,7 @@ function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort endif if !empty(l:span) + " :help ale-loclist-format let l:output_line = { \ 'filename': l:span.file_name, \ 'lnum': l:span.line_start, -- cgit v1.2.3