swiffer.vim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. "============================================================================
  2. "File: swiffer.vim
  3. "Description: Dust.js syntax checker - using swiffer
  4. "Maintainer: Steven Foote <smfoote 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. if exists('g:loaded_syntastic_dustjs_swiffer_checker')
  12. finish
  13. endif
  14. let g:loaded_syntastic_dustjs_swiffer_checker = 1
  15. let s:save_cpo = &cpo
  16. set cpo&vim
  17. function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict
  18. let makeprg = self.makeprgBuild({})
  19. let errorformat = '%E%f - Line %l\, Column %c: %m'
  20. return SyntasticMake({
  21. \ 'makeprg': makeprg,
  22. \ 'errorformat': errorformat })
  23. endfunction
  24. call SyntasticRegistry.CreateAndRegisterChecker({
  25. \ 'filetype': 'dustjs',
  26. \ 'name': 'swiffer'})
  27. let &cpo = s:save_cpo
  28. unlet s:save_cpo
  29. " vim: set sw=4 sts=4 et fdm=marker: