Bram Moolenaar | fb53927 | 2014-08-22 19:21:47 +0200 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Compiler: Go |
| 3 | " Maintainer: David Barnett (https://github.com/google/vim-ft-go) |
| 4 | " Last Change: 2014 Aug 16 |
Doug Kearns | 408281e | 2024-04-04 22:00:58 +0200 | [diff] [blame] | 5 | " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) |
Bram Moolenaar | fb53927 | 2014-08-22 19:21:47 +0200 | [diff] [blame] | 6 | |
| 7 | if exists('current_compiler') |
| 8 | finish |
| 9 | endif |
| 10 | let current_compiler = 'go' |
| 11 | |
| 12 | if exists(':CompilerSet') != 2 |
| 13 | command -nargs=* CompilerSet setlocal <args> |
| 14 | endif |
| 15 | |
| 16 | let s:save_cpo = &cpo |
| 17 | set cpo-=C |
| 18 | |
| 19 | CompilerSet makeprg=go\ build |
| 20 | CompilerSet errorformat= |
| 21 | \%-G#\ %.%#, |
| 22 | \%A%f:%l:%c:\ %m, |
| 23 | \%A%f:%l:\ %m, |
| 24 | \%C%*\\s%m, |
| 25 | \%-G%.%# |
| 26 | |
| 27 | let &cpo = s:save_cpo |
| 28 | unlet s:save_cpo |
| 29 | |
| 30 | " vim: sw=2 sts=2 et |