vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

jest.vim (674B)


      1 " Vim compiler file
      2 " Compiler:	Jest
      3 " Maintainer:	Doug Kearns <dougkearns@gmail.com>
      4 " Last Change:	2024 Apr 03
      5 
      6 if exists("current_compiler")
      7   finish
      8 endif
      9 let current_compiler = "jest"
     10 
     11 let s:cpo_save = &cpo
     12 set cpo&vim
     13 
     14 " CompilerSet makeprg=npx\ --no-install\ jest\ --no-colors
     15 
     16 CompilerSet makeprg=jest\ --no-colors
     17 CompilerSet errorformat=%-A\ \ ●\ Console,
     18 		       \%E\ \ ●\ %m,
     19 		       \%Z\ %\\{4}%.%#Error:\ %f:\ %m\ (%l:%c):%\\=,
     20 		       \%Z\ %\\{6}at\ %\\S%#\ (%f:%l:%c),
     21 		       \%Z\ %\\{6}at\ %\\S%#\ %f:%l:%c,
     22 		       \%+C\ %\\{4}%\\w%.%#,
     23 		       \%+C\ %\\{4}%[-+]%.%#,
     24 		       \%-C%.%#,
     25 		       \%-G%.%#
     26 
     27 let &cpo = s:cpo_save
     28 unlet s:cpo_save