Partially synced with the branch.
[MacVim.git] / runtime / compiler / decada.vim
blob95d416671af00a57907bac3fb82938c9210b2b52
1 "------------------------------------------------------------------------------
2 "  Description: Vim Ada/Dec Ada compiler file
3 "     Language: Ada (Dec Ada)
4 "          $Id: decada.vim,v 1.8 2008/08/06 16:58:48 vimboss Exp $
5 "    Copyright: Copyright (C) 2006 Martin Krischik
6 "   Maintainer: Martin Krischik <krischik@users.sourceforge.net>
7 "      $Author: vimboss $
8 "        $Date: 2008/08/06 16:58:48 $
9 "      Version: 4.6
10 "    $Revision: 1.8 $
11 "     $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/decada.vim $
12 "      History: 21.07.2006 MK New Dec Ada
13 "               15.10.2006 MK Bram's suggestion for runtime integration
14 "               08.09.2006 MK Correct double load protection.
15 "    Help Page: compiler-decada
16 "------------------------------------------------------------------------------
18 if (exists("current_compiler")      &&
19    \ current_compiler == "decada")  ||
20    \ version < 700
21    finish
22 endif
24 let current_compiler = "decada"
26 if !exists("g:decada")
27    let g:decada = decada#New ()
29    call ada#Map_Menu (
30      \'Dec Ada.Build',
31      \'<F7>',
32      \'call decada.Make ()')
34    call g:decada.Set_Session ()
35 endif
37 if exists(":CompilerSet") != 2
38    "
39    " plugin loaded by other means then the "compiler" command
40    "
41    command -nargs=* CompilerSet setlocal <args>
42 endif
44 execute "CompilerSet makeprg="     . escape (g:decada.Make_Command, ' ')
45 execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')
47 finish " 1}}}
49 "------------------------------------------------------------------------------
50 "   Copyright (C) 2006  Martin Krischik
52 "   Vim is Charityware - see ":help license" or uganda.txt for licence details.
53 "------------------------------------------------------------------------------
54 " vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
55 " vim: foldmethod=marker