aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2014-12-27 14:55:02 +0100
committerFlorian Walch <florian@fwalch.com>2014-12-30 13:51:39 +0100
commit272f1064c74c745af4ac97ca1e46015fc7a6934d (patch)
treeaa5023538237b1fdc8f2e505ded84939bd69106b /runtime/compiler
parenta31bcfb98afbe4d845911b4d90255c18769f197a (diff)
downloadrneovim-272f1064c74c745af4ac97ca1e46015fc7a6934d.tar.gz
rneovim-272f1064c74c745af4ac97ca1e46015fc7a6934d.tar.bz2
rneovim-272f1064c74c745af4ac97ca1e46015fc7a6934d.zip
vim-patch:1e8ebf8
Updated runtime files. https://code.google.com/p/vim/source/detail?r=1e8ebf870720e7b671f98f22d653009826304c4f
Diffstat (limited to 'runtime/compiler')
-rw-r--r--runtime/compiler/go.vim29
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/compiler/go.vim b/runtime/compiler/go.vim
new file mode 100644
index 0000000000..cf638f23d6
--- /dev/null
+++ b/runtime/compiler/go.vim
@@ -0,0 +1,29 @@
+" 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