runtime(compiler): update errorformat for dot and neato compiler (#14257) Commit: https://github.com/vim/vim/commit/6f438199c92b3258c1faeba1c5ebddd2ce247658 Author: Enno <konf...@users.noreply.github.com> Date: Sun Mar 24 10:37:56 2024 +0100
runtime(compiler): update errorformat for dot and neato compiler (https://github.com/vim/vim/issues/14257) * add errorformat for dot compiler * add errorformat for neato compiler Signed-off-by: Konfekt <konf...@users.noreply.github.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/compiler/dot.vim b/runtime/compiler/dot.vim index 0327739aa..773a6fb26 100644 --- a/runtime/compiler/dot.vim +++ b/runtime/compiler/dot.vim @@ -1,7 +1,7 @@ " Vim compiler file " Compiler: ATT dot " Maintainer: Marcos Macedo <bar...@bol.com.br> -" Last Change: 2004 May 16 +" Last Change: 2024 March 21 if exists("current_compiler") finish @@ -13,3 +13,6 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal endif CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" +" matches error messages as below skipping final part after line number +" Error: ./file.dot: syntax error in line 1 near 'rankdir' +CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%# diff --git a/runtime/compiler/neato.vim b/runtime/compiler/neato.vim index bd184b7f6..102c16e72 100644 --- a/runtime/compiler/neato.vim +++ b/runtime/compiler/neato.vim @@ -1,7 +1,7 @@ " Vim compiler file " Compiler: ATT neato " Maintainer: Marcos Macedo <bar...@bol.com.br> -" Last Change: 2004 May 16 +" Last Change: 2024 March 21 if exists("current_compiler") finish @@ -13,3 +13,6 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal endif CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" +" matches error messages as below skipping final part after line number +" Error: ./file.dot: syntax error in line 1 near 'rankdir' +CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%# -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1roKPW-002uxh-Li%40256bit.org.