view runtime/compiler/go.vim @ 30517:9e6796c75c07 v9.0.0594

patch 9.0.0594: Makefile error message causes a shell error Commit: https://github.com/vim/vim/commit/2cb4a89797477fc90c9d84b0d45e869369e39c75 Author: dundargoc <gocdundar@gmail.com> Date: Mon Sep 26 16:02:48 2022 +0100 patch 9.0.0594: Makefile error message causes a shell error Problem: Makefile error message causes a shell error. Solution: Put the message in single quotes. (closes https://github.com/vim/vim/issues/11232)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Sep 2022 17:15:02 +0200
parents 1e8ebf870720
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	Go
" Maintainer:	David Barnett (https://github.com/google/vim-ft-go)
" Last Change:	2014 Aug 16

if exists('current_compiler')
  finish
endif
let current_compiler = 'go'

if exists(':CompilerSet') != 2
  command -nargs=* CompilerSet setlocal <args>
endif

let s:save_cpo = &cpo
set cpo-=C

CompilerSet makeprg=go\ build
CompilerSet errorformat=
    \%-G#\ %.%#,
    \%A%f:%l:%c:\ %m,
    \%A%f:%l:\ %m,
    \%C%*\\s%m,
    \%-G%.%#

let &cpo = s:save_cpo
unlet s:save_cpo

" vim: sw=2 sts=2 et