Mercurial > vim
annotate runtime/compiler/tsc.vim @ 27037:a0a37337428a v8.2.4047
patch 8.2.4047: depending on the build features error messages are unused
Commit: https://github.com/vim/vim/commit/f85a424c832777892c4efaff163c2fa710ce8d91
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sun Jan 9 12:49:31 2022 +0000
patch 8.2.4047: depending on the build features error messages are unused
Problem: Depending on the build features error messages are unused.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9493)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Jan 2022 14:00:04 +0100 |
parents | 0db0640e16e0 |
children | e1df51f68736 |
rev | line source |
---|---|
21825 | 1 " Vim compiler file |
2 " Compiler: TypeScript Compiler | |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Last Change: 2020 Feb 10 | |
5 | |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "tsc" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 let s:cpo_save = &cpo | |
16 set cpo&vim | |
17 | |
18 " CompilerSet makeprg=npx\ tsc | |
19 | |
20 CompilerSet makeprg=tsc | |
21 CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m, | |
22 \%trror\ TS%n:\ %m, | |
23 \%-G%.%# | |
24 | |
25 let &cpo = s:cpo_save | |
26 unlet s:cpo_save |