diff options
Diffstat (limited to 'mnv/runtime/compiler/tsc.mnv')
| -rw-r--r-- | mnv/runtime/compiler/tsc.mnv | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mnv/runtime/compiler/tsc.mnv b/mnv/runtime/compiler/tsc.mnv new file mode 100644 index 0000000000..baab6c8e51 --- /dev/null +++ b/mnv/runtime/compiler/tsc.mnv @@ -0,0 +1,23 @@ +" MNV compiler file +" Compiler: TypeScript Compiler +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Last Change: 2024 Apr 03 +" 2025 Mar 11 by The MNV Project (add comment for Dispatch, add tsc_makeprg variable) + +if exists("current_compiler") + finish +endif +let current_compiler = "tsc" + +let s:cpo_save = &cpo +set cpo&mnv + +" CompilerSet makeprg=tsc +" CompilerSet makeprg=npx\ tsc +execute $'CompilerSet makeprg={escape(get(b:, 'tsc_makeprg', get(g:, 'tsc_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 |
