summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/neato.vim
blob: 102c16e72b5aab15c68f713265fd463990ea421a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Vim compiler file
" Compiler:     ATT neato
" Maintainer:	Marcos Macedo <bar4ka@bol.com.br>
" Last Change:	2024 March 21

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

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