haml.vim 551 B

1234567891011121314151617181920212223242526272829
  1. " Vim compiler file
  2. " Compiler: Haml
  3. " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
  4. " Last Change: 2016 Aug 29
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "haml"
  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-=C
  14. CompilerSet makeprg=haml
  15. CompilerSet errorformat=
  16. \Haml\ %trror\ on\ line\ %l:\ %m,
  17. \Syntax\ %trror\ on\ line\ %l:\ %m,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save
  21. " vim:set sw=2 sts=2: