nagelfar.vim 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "============================================================================
  2. "File: nagelfar.vim
  3. "Description: Syntax checking plugin for syntastic.vim
  4. "Maintainer: James Pickard <james.pickard at gmail dot com>
  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. "============================================================================
  12. "
  13. "Notes: Requires nagelfar v1.1.12 or later with support for -H option.
  14. " See nagelfar homepage http://nagelfar.berlios.de/.
  15. if exists('g:loaded_syntastic_tcl_nagelfar_checker')
  16. finish
  17. endif
  18. let g:loaded_syntastic_tcl_nagelfar_checker = 1
  19. let s:save_cpo = &cpo
  20. set cpo&vim
  21. function! SyntaxCheckers_tcl_nagelfar_GetLocList() dict
  22. let makeprg = self.makeprgBuild({ 'args_after': '-H' })
  23. let errorformat =
  24. \ '%I%f: %l: N %m,'.
  25. \ '%f: %l: %t %m,'.
  26. \ '%-GChecking file %f'
  27. return SyntasticMake({
  28. \ 'makeprg': makeprg,
  29. \ 'errorformat': errorformat })
  30. endfunction
  31. call g:SyntasticRegistry.CreateAndRegisterChecker({
  32. \ 'filetype': 'tcl',
  33. \ 'name': 'nagelfar'})
  34. let &cpo = s:save_cpo
  35. unlet s:save_cpo
  36. " vim: set sw=4 sts=4 et fdm=marker: