recess.vim 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "============================================================================
  2. "File: recess.vim
  3. "Description: Syntax checking plugin for syntastic.vim using `recess`
  4. " (http://twitter.github.io/recess/).
  5. "Maintainer: Tim Carry <tim at pixelastic dot com>
  6. "License: This program is free software. It comes without any warranty,
  7. " to the extent permitted by applicable law. You can redistribute
  8. " it and/or modify it under the terms of the Do What The Fuck You
  9. " Want To Public License, Version 2, as published by Sam Hocevar.
  10. " See http://sam.zoy.org/wtfpl/COPYING for more details.
  11. "
  12. "============================================================================
  13. if exists('g:loaded_syntastic_less_recess_checker')
  14. finish
  15. endif
  16. let g:loaded_syntastic_less_recess_checker = 1
  17. let s:save_cpo = &cpo
  18. set cpo&vim
  19. function! SyntaxCheckers_less_recess_GetLocList() dict
  20. let makeprg = self.makeprgBuild({
  21. \ 'post_args_after': '--format=compact --stripColors' })
  22. let errorformat =
  23. \ '%E%m in %f,' .
  24. \ '%Z %#%l.%.%#,' .
  25. \ '%f:%l:%m,' .
  26. \ '%-G%.%#'
  27. return SyntasticMake({
  28. \ 'makeprg': makeprg,
  29. \ 'errorformat': errorformat })
  30. endfunction
  31. call g:SyntasticRegistry.CreateAndRegisterChecker({
  32. \ 'filetype': 'less',
  33. \ 'name': 'recess'})
  34. let &cpo = s:save_cpo
  35. unlet s:save_cpo
  36. " vim: set sw=4 sts=4 et fdm=marker: