]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): improve rust errorformat
authoryilisharcs <yilisharcs@gmail.com>
Thu, 18 Dec 2025 20:14:12 +0000 (21:14 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Dec 2025 20:14:12 +0000 (21:14 +0100)
This commit adds match patterns for:
- warnings with error codes (warning[E0123]: foobar)
- valid nightly unicode entries

closes: #18957

Signed-off-by: yilisharcs <yilisharcs@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/rustc.vim

index ca261d857a188018744c240029da6c6821c66015..0b488918525ddccfb46ff551791d5dccd853fafa 100644 (file)
@@ -3,6 +3,7 @@
 " Maintainer:       Chris Morgan <me@chrismorgan.info>
 " Latest Revision:  2023-09-11
 " 2025 Nov 15 by Vim project: remove test for Vim patch 7.4.191
+" 2025 Dec 18 by Vim project: detect more errors #18957
 " For bugs, patches and license go to https://github.com/rust-lang/rust.vim
 
 if exists("current_compiler")
@@ -29,8 +30,10 @@ CompilerSet errorformat=
             \%Eerror:\ %m,
             \%Eerror[E%n]:\ %m,
             \%Wwarning:\ %m,
+            \%Wwarning[E%n]:\ %m,
             \%Inote:\ %m,
             \%C\ %#-->\ %f:%l:%c,
+            \%C\ %#╭▸\ %f:%l:%c,
             \%E\ \ left:%m,%C\ right:%m\ %f:%l:%c,%Z
 
 " Old errorformat (before nightly 2016/08/10)