dart2native.vim 620 B

1234567891011121314151617181920212223242526272829
  1. " Vim compiler file
  2. " Compiler: Dart to Native Compiler
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2019 May 08
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "dart2native"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. CompilerSet makeprg=dart2native
  15. CompilerSet errorformat=%E%f:%l:%c:\ Error:\ %m,
  16. \%CTry\ %.%#,
  17. \%Z\ %#^%\\+,
  18. \%Z%$,
  19. \%C%.%#,
  20. \%E%f:\ %trror:\ %m,
  21. \%-G%.%#
  22. let &cpo = s:cpo_save
  23. unlet s:cpo_save