diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-09 17:57:23 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-14 18:20:30 -0400 |
commit | ab85f774a621ed61eb4e575447cd38f2c306c775 (patch) | |
tree | cc831b6c832e619ec1c9505b7534e076e04200db /runtime/compiler | |
parent | 5e95e0da44c9c2d09146e5966c67a969f9237650 (diff) | |
download | rneovim-ab85f774a621ed61eb4e575447cd38f2c306c775.tar.gz rneovim-ab85f774a621ed61eb4e575447cd38f2c306c775.tar.bz2 rneovim-ab85f774a621ed61eb4e575447cd38f2c306c775.zip |
vim-patch:8.2.1410: adding compiler plugin requires test change
Problem: Adding compiler plugin requires test change.
Solution: Include compiler plugin and adjust test.
https://github.com/vim/vim/commit/7f7a8888699bca6df0a45a16db5f0e313383b5f1
Diffstat (limited to 'runtime/compiler')
-rw-r--r-- | runtime/compiler/xo.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime/compiler/xo.vim b/runtime/compiler/xo.vim new file mode 100644 index 0000000000..525657d4bb --- /dev/null +++ b/runtime/compiler/xo.vim @@ -0,0 +1,26 @@ +" Vim compiler file +" Compiler: XO +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Last Change: 2019 Jul 10 + +if exists("current_compiler") + finish +endif +let current_compiler = "xo" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo&vim + +" CompilerSet makeprg=npx\ xo\ --reporter\ compact + +CompilerSet makeprg=xo\ --reporter\ compact +CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ %m, + \%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ %m, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save |