rnv.vim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. "============================================================================
  2. "File: rnv.vim
  3. "Description: RelaxNG RNV syntax checking plugin for syntastic.vim
  4. "Maintainer: Remko Tronçon <remko at el-tramo dot be>
  5. "License: This program is free software. It comes without any warranty,
  6. " to the extent permitted by applicable law. You can redistribute
  7. " it and/or modify it under the terms of the Do What The Fuck You
  8. " Want To Public License, Version 2, as published by Sam Hocevar.
  9. " See http://sam.zoy.org/wtfpl/COPYING for more details.
  10. "============================================================================
  11. if exists('g:loaded_syntastic_rnc_rnv_checker')
  12. finish
  13. endif
  14. let g:loaded_syntastic_rnc_rnv_checker = 1
  15. let s:save_cpo = &cpo
  16. set cpo&vim
  17. function! SyntaxCheckers_rnc_rnv_GetLocList() dict
  18. let makeprg = self.makeprgBuild({ 'args': '-c' })
  19. let errorformat =
  20. \ '%f:%l:%c: %trror: %m'
  21. return SyntasticMake({
  22. \ 'makeprg': makeprg,
  23. \ 'errorformat': errorformat })
  24. endfunction
  25. call g:SyntasticRegistry.CreateAndRegisterChecker({
  26. \ 'filetype': 'rnc',
  27. \ 'name': 'rnv'})
  28. let &cpo = s:save_cpo
  29. unlet s:save_cpo
  30. " vim: set sw=4 sts=4 et fdm=marker: