view runtime/compiler/tsc.vim @ 21975:2030f8267db9 v8.2.1537

patch 8.2.1537: memory acccess error when using setcellwidths() Commit: https://github.com/vim/vim/commit/b06a6d59d12dbd67d55b3c46f6e5547e9103c931 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 28 23:27:20 2020 +0200 patch 8.2.1537: memory acccess error when using setcellwidths() Problem: Memory acccess error when using setcellwidths(). Solution: Use array and pointers correctly.
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Aug 2020 23:30:04 +0200
parents 0db0640e16e0
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	TypeScript Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2020 Feb 10

if exists("current_compiler")
  finish
endif
let current_compiler = "tsc"

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\ tsc

CompilerSet makeprg=tsc
CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m,
		       \%trror\ TS%n:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save