Mercurial > vim
view runtime/compiler/jest.vim @ 23592:2322b643e329 v8.2.2338
patch 8.2.2338: Vim9: no error if using job_info() result wrongly
Commit: https://github.com/vim/vim/commit/64ed4d4398e92ac56a9bbd66d5ec992dd4c335f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 12 21:22:31 2021 +0100
patch 8.2.2338: Vim9: no error if using job_info() result wrongly
Problem: Vim9: no error if using job_info() result wrongly.
Solution: Adjust return type on number of arguments. (closes https://github.com/vim/vim/issues/7667)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Jan 2021 21:30:03 +0100 |
parents | 0db0640e16e0 |
children | c968191a8557 |
line wrap: on
line source
" Vim compiler file " Compiler: Jest " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2018 May 15 if exists("current_compiler") finish endif let current_compiler = "jest" 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\ jest\ --no-colors CompilerSet makeprg=jest\ --no-colors CompilerSet errorformat=%E\ \ ●\ %m, \%Z\ %\\{4}%.%#Error:\ %f:\ %m\ (%l:%c):%\\=, \%Z\ %\\{6}at\ %\\S%#\ (%f:%l:%c), \%+C\ %\\{4}%\\w%.%#, \%+C\ %\\{4}%[-+]%.%#, \%-C%.%#, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save