dart2js.vim 505 B

12345678910111213141516171819202122232425
  1. " Vim compiler file
  2. " Compiler: Dart to JavaScript Compiler
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Apr 03
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "dart2js"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. CompilerSet makeprg=dart2js
  12. CompilerSet errorformat=%E%f:%l:%c:,
  13. \%-GError:\ Compilation\ failed.,
  14. \%CError:\ %m,
  15. \%Z\ %#^%\\+,
  16. \%C%.%#,
  17. \%trror:\ %m,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save