]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): update errorformat for dot and neato compiler (#14257)
authorEnno <Konfekt@users.noreply.github.com>
Sun, 24 Mar 2024 09:37:56 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Mar 2024 09:37:56 +0000 (10:37 +0100)
* add errorformat for dot compiler
* add errorformat for neato compiler

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/dot.vim
runtime/compiler/neato.vim

index 0327739aae67b4cf3d7e65ca97303f2eb8ca2f99..773a6fb269924541719e2a2a42034da0e6c40bcb 100644 (file)
@@ -1,7 +1,7 @@
 " Vim compiler file
 " Compiler:     ATT dot
 " Maintainer:  Marcos Macedo <bar4ka@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%.%#
index bd184b7f6e9c0400241cbc0585179e40d9ab3362..102c16e72b5aab15c68f713265fd463990ea421a 100644 (file)
@@ -1,7 +1,7 @@
 " Vim compiler file
 " Compiler:     ATT neato
 " Maintainer:  Marcos Macedo <bar4ka@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%.%#