Skip to content

Commit 011585f

Browse files
clasonKonfekt
andcommitted
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 vim/vim@6f43819 Co-authored-by: Enno <[email protected]>
1 parent ed91060 commit 011585f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: runtime/compiler/dot.vim

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: ATT dot
33
" Maintainer: Marcos Macedo <[email protected]>
4-
" Last Change: 2004 May 16
4+
" Last Change: 2024 March 21
55

66
if exists("current_compiler")
77
finish
@@ -13,3 +13,6 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
1313
endif
1414

1515
CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
16+
" matches error messages as below skipping final part after line number
17+
" Error: ./file.dot: syntax error in line 1 near 'rankdir'
18+
CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%#

Diff for: runtime/compiler/neato.vim

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: ATT neato
33
" Maintainer: Marcos Macedo <[email protected]>
4-
" Last Change: 2004 May 16
4+
" Last Change: 2024 March 21
55

66
if exists("current_compiler")
77
finish
@@ -13,3 +13,6 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
1313
endif
1414

1515
CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
16+
" matches error messages as below skipping final part after line number
17+
" Error: ./file.dot: syntax error in line 1 near 'rankdir'
18+
CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%#

0 commit comments

Comments
 (0)