gawk.vim 865 B

1234567891011121314151617181920212223242526272829303132333435
  1. " Vim compiler file
  2. " Compiler: GNU Awk
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2020 Feb 10
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "gawk"
  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=gawk
  15. CompilerSet errorformat=%Z%.awk:\ %f:%l:\ %p^\ %m,
  16. \%Eg%\\=awk:\ %f:%l:\ fatal:\ %m,
  17. \%Egawk:\ %f:%l:\ error:\ %m,
  18. \%Wgawk:\ %f:%l:\ warning:\ %m,
  19. \%Egawk:\ %f:%l:\ %.%#,
  20. \gawk:\ %f:%l:\ %tatal:\ %m,
  21. \gawk:\ %f:%l:\ %trror:\ %m,
  22. \gawk:\ %f:%l:\ %tarning:\ %m,
  23. \gawk:\ %tatal:\ %m,
  24. \gawk:\ %trror:\ %m,
  25. \gawk:\ %tarning:\ %m,
  26. \%+C%.%#,
  27. \%-G%.%#
  28. let &cpo = s:cpo_save
  29. unlet s:cpo_save