1 "============================================================================
3 "Description: Syntax checking plugin for syntastic.vim
4 "Maintainer: Alexis Laferrière <alexis.laf@xymus.net>
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("loaded_nit_syntax_checker")
14 let loaded_nit_syntax_checker = 1
16 " check if nitc is accessible
17 if !executable("nitc")
21 function! SyntaxCheckers_nit_GetLocList()
22 let makeprg = "nitc --no-color --only-metamodel 2>&1 " . shellescape(expand("%"))
23 " possible combinations of error messages
24 let ef_start = [ '%f:%l\,%c--%*[0-9]:', '%f:%l\,%c--%*[0-9]\,%*[0-9]:', '%f:%l\,%c:' ]
25 let ef_type = [ ' %tarning: ', ' %trror: ', ' Syntax %trror: ' ]
27 " generate errorformat from combinations
31 let errorformat .= s . t . '%m,'
35 return SyntasticMake({ 'makeprg': makeprg, 'errorformat':errorformat })