gawk.vim 745 B

12345678910111213141516171819202122232425262728293031
  1. " Vim compiler file
  2. " Compiler: GNU Awk
  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 = "gawk"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. CompilerSet makeprg=gawk
  12. CompilerSet errorformat=%Z%.awk:\ %f:%l:\ %p^\ %m,
  13. \%Eg%\\=awk:\ %f:%l:\ fatal:\ %m,
  14. \%Egawk:\ %f:%l:\ error:\ %m,
  15. \%Wgawk:\ %f:%l:\ warning:\ %m,
  16. \%Egawk:\ %f:%l:\ %.%#,
  17. \gawk:\ %f:%l:\ %tatal:\ %m,
  18. \gawk:\ %f:%l:\ %trror:\ %m,
  19. \gawk:\ %f:%l:\ %tarning:\ %m,
  20. \gawk:\ %tatal:\ %m,
  21. \gawk:\ %trror:\ %m,
  22. \gawk:\ %tarning:\ %m,
  23. \%+C%.%#,
  24. \%-G%.%#
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save