From 772834ab96b037fb05afca16ee491de64fef49bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 21 Jan 2014 10:41:51 -0500 Subject: [PATCH] misc: update Vim syntastic plugin to use nitg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- .../vim/syntax_checkers/nit/{nitc.vim => nitg.vim} | 35 ++++++++++---------- 1 file changed, 18 insertions(+), 17 deletions(-) rename misc/vim/syntax_checkers/nit/{nitc.vim => nitg.vim} (72%) diff --git a/misc/vim/syntax_checkers/nit/nitc.vim b/misc/vim/syntax_checkers/nit/nitg.vim similarity index 72% rename from misc/vim/syntax_checkers/nit/nitc.vim rename to misc/vim/syntax_checkers/nit/nitg.vim index 563e478..c70bf44 100644 --- a/misc/vim/syntax_checkers/nit/nitc.vim +++ b/misc/vim/syntax_checkers/nit/nitg.vim @@ -1,5 +1,5 @@ "============================================================================ -"File: nit.vim +"File: nitg.vim "Description: Syntax checking plugin for syntastic.vim "Maintainer: Alexis Laferrière "License: This program is free software. It comes without any warranty, @@ -8,36 +8,37 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. " -" g:syntastic_nitc specifies custom path to compiler +" g:syntastic_nitg specifies custom path to compiler " g:syntastic_nit_dir specifies the NIT_DIR env variable -" g:syntastic_nit_args specifies extra arguments to call nitc +" g:syntastic_nit_args specifies extra arguments to call nitg " g:syntastic_nit_include_dirs lists directories to include, must be a list +" g:nit_main sets the main module to compile instead of the opened file "============================================================================ -if exists("loaded_syntastic_nit_nitc_checker") +if exists("loaded_syntastic_nit_nitg_checker") finish endif -let loaded_syntastic_nit_nitc_checker = 1 +let loaded_syntastic_nit_nitg_checker = 1 -" check if nitc is accessible -if exists('g:syntastic_nitc') - let s:nitc = g:syntastic_nitc +" check if nitg is accessible +if exists('g:syntastic_nitg') + let s:nitg = g:syntastic_nitg else - let s:nitc = "nitc" + let s:nitg = "nitg" endif -if !executable(s:nitc) - if exists('g:syntastic_nitc') - echo "Syntastic for Nit error: Custom nitc cannot be found at: " . g:syntastic_nitc +if !executable(s:nitg) + if exists('g:syntastic_nitg') + echo "Syntastic for Nit error: Custom nitg cannot be found at: " . g:syntastic_nitg endif finish endif -function! SyntaxCheckers_nit_nitc_IsAvailable() - return executable(expand(s:nitc)) +function! SyntaxCheckers_nit_nitg_IsAvailable() + return executable(expand(s:nitg)) endfunction -function! SyntaxCheckers_nit_nitc_GetLocList() - let makeprg = s:nitc . " --no-color --only-metamodel " +function! SyntaxCheckers_nit_nitg_GetLocList() + let makeprg = s:nitg . " --no-color --only-metamodel " " custom NIT_DIR if exists('g:syntastic_nit_dir') @@ -86,4 +87,4 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'nit', - \ 'name': 'nitc'}) + \ 'name': 'nitg'}) -- 1.7.9.5