diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:49:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-07 02:49:08 +0100 |
| commit | ad527392abb60e19954d5e8dba05af282d67d15b (patch) | |
| tree | 5a8ad20c8cc49b37593e8f1089420446b731b0d0 /runtime/compiler/cargo.vim | |
| parent | dc9290109481e5e0d0c224fecb217ceb5a4c978d (diff) | |
| parent | 20e317e22abeef20891eb70a18435559f7b09212 (diff) | |
| download | rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.gz rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.bz2 rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.zip | |
Merge #7499 'vim-patch: runtime'
Diffstat (limited to 'runtime/compiler/cargo.vim')
| -rw-r--r-- | runtime/compiler/cargo.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/compiler/cargo.vim b/runtime/compiler/cargo.vim new file mode 100644 index 0000000000..bd48666bc9 --- /dev/null +++ b/runtime/compiler/cargo.vim @@ -0,0 +1,35 @@ +" Vim compiler file +" Compiler: Cargo Compiler +" Maintainer: Damien Radtke <damienradtke@gmail.com> +" Latest Revision: 2014 Sep 24 +" For bugs, patches and license go to https://github.com/rust-lang/rust.vim + +if exists('current_compiler') + finish +endif +runtime compiler/rustc.vim +let current_compiler = "cargo" + +let s:save_cpo = &cpo +set cpo&vim + +if exists(':CompilerSet') != 2 + command -nargs=* CompilerSet setlocal <args> +endif + +if exists('g:cargo_makeprg_params') + execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*' +else + CompilerSet makeprg=cargo\ $* +endif + +" Ignore general cargo progress messages +CompilerSet errorformat+= + \%-G%\\s%#Downloading%.%#, + \%-G%\\s%#Compiling%.%#, + \%-G%\\s%#Finished%.%#, + \%-G%\\s%#error:\ Could\ not\ compile\ %.%#, + \%-G%\\s%#To\ learn\ more\\,%.%# + +let &cpo = s:save_cpo +unlet s:save_cpo |
