view runtime/compiler/dot.vim @ 34629:80a9b43d299b

runtime(compiler): update errorformat for dot and neato compiler (#14257) Commit: https://github.com/vim/vim/commit/6f438199c92b3258c1faeba1c5ebddd2ce247658 Author: Enno <Konfekt@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 <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Mar 2024 10:45:02 +0100
parents 3fc0f57ecb91
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:     ATT dot
" Maintainer:	Marcos Macedo <bar4ka@bol.com.br>
" Last Change:	2024 March 21

if exists("current_compiler")
  finish
endif
let current_compiler = "dot"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
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%.%#