view runtime/compiler/xo.vim @ 21721:165d5890e411 v8.2.1410

patch 8.2.1410: adding compiler plugin requires test change Commit: https://github.com/vim/vim/commit/7f7a8888699bca6df0a45a16db5f0e313383b5f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 9 20:05:41 2020 +0200 patch 8.2.1410: adding compiler plugin requires test change Problem: Adding compiler plugin requires test change. Solution: Include compiler plugin and adjust test.
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Aug 2020 20:15:09 +0200
parents
children e1df51f68736
line wrap: on
line source

" 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