summaryrefslogblamecommitdiffstats
path: root/compiler/typescript.vim
blob: 4910a95e037cf1b737d01e3d6e879857ca84d16e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 

        
 
                             

        
 
                                 
 

                                          

     





                                                                       

     
                                                                                             

                                                         
if !has_key(g:polyglot_is_disabled, 'typescript')
  finish
endif

if exists('current_compiler')
  finish
endif

let current_compiler='typescript'

if !exists('g:typescript_compiler_binary')
  let g:typescript_compiler_binary = 'tsc'
endif

if !exists('g:typescript_compiler_options')
  if exists('g:syntastic_typescript_tsc_args')
    let g:typescript_compiler_options = g:syntastic_typescript_tsc_args
  else
    let g:typescript_compiler_options = ''
  endif
endif

let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'

CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m