aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-03-24 10:48:11 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-03-24 11:05:04 +0100
commit011585f35fee83c27e6db91a4ed0feff362efa75 (patch)
tree6518e962f59c49f936ed2e1b49acea9b8774d78c
parented910604ca677c897f003d00832dc6a1cb3ac65d (diff)
downloadrneovim-011585f35fee83c27e6db91a4ed0feff362efa75.tar.gz
rneovim-011585f35fee83c27e6db91a4ed0feff362efa75.tar.bz2
rneovim-011585f35fee83c27e6db91a4ed0feff362efa75.zip
vim-patch:6f438199c92b
runtime(compiler): update errorformat for dot and neato compiler (vim/vim#14257) * add errorformat for dot compiler * add errorformat for neato compiler https://github.com/vim/vim/commit/6f438199c92b3258c1faeba1c5ebddd2ce247658 Co-authored-by: Enno <Konfekt@users.noreply.github.com>
-rw-r--r--runtime/compiler/dot.vim5
-rw-r--r--runtime/compiler/neato.vim5
2 files changed, 8 insertions, 2 deletions
diff --git a/runtime/compiler/dot.vim b/runtime/compiler/dot.vim
index 0327739aae..773a6fb269 100644
--- a/runtime/compiler/dot.vim
+++ b/runtime/compiler/dot.vim
@@ -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%.%#
diff --git a/runtime/compiler/neato.vim b/runtime/compiler/neato.vim
index bd184b7f6e..102c16e72b 100644
--- a/runtime/compiler/neato.vim
+++ b/runtime/compiler/neato.vim
@@ -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%.%#