diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-09 20:05:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-09 20:05:41 +0200 |
commit | 7f7a8888699bca6df0a45a16db5f0e313383b5f1 (patch) | |
tree | a9a42fb672337ff8768952981da8239f3056fc22 /runtime | |
parent | 1e91eafc2e19b84ea44347ea929d2791d2fdd5e3 (diff) |
patch 8.2.1410: adding compiler plugin requires test changev8.2.1410
Problem: Adding compiler plugin requires test change.
Solution: Include compiler plugin and adjust test.
Diffstat (limited to 'runtime')
-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 |