runtime(compiler): Match gcc.vim make error format

Commit: 
https://github.com/vim/vim/commit/bd5e882a913929864ad650a4ccf3bd5127d1bc25
Author: yilisharcs <[email protected]>
Date:   Wed Dec 17 22:29:24 2025 +0100

    runtime(compiler): Match gcc.vim make error format
    
    Problem:  gcc.vim interprets "make: *** [Makefile" in the error message
              "make: *** [Makefile:2: all] Error 1" as a valid filename.
    Solution: Add pattern to extract the filename correctly. Note that this
              doesn't remove the dangling "]" from the output ("all]").
    
    closes: #18956
    
    Signed-off-by: yilisharcs <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/compiler/gcc.vim b/runtime/compiler/gcc.vim
index 7b6ebb98f..1d5900eb2 100644
--- a/runtime/compiler/gcc.vim
+++ b/runtime/compiler/gcc.vim
@@ -6,6 +6,7 @@
 "                      by Daniel Hahler, 2019 Jul 12
 "                      added line suggested by Anton Lindqvist 2016 Mar 31
 "                      2024 Apr 03 by The Vim Project (removed :CompilerSet 
definition)
+"                      2025 Dec 17 by The Vim Project (correctly parse: 'make: 
*** [Makefile:2: all] Error 1')
 
 if exists("current_compiler")
   finish
@@ -16,6 +17,7 @@ let s:cpo_save = &cpo
 set cpo&vim
 
 CompilerSet errorformat=
+      \make:\ ***\ [%f:%l:\ %m,
       \%*[^\"]\"%f\"%*\D%l:%c:\ %m,
       \%*[^\"]\"%f\"%*\D%l:\ %m,
       \"%f\"%*\D%l:%c:\ %m,

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vVz5x-002enV-65%40256bit.org.

Raspunde prin e-mail lui