xref: /vim-8.2.3635/runtime/compiler/decada.vim (revision 8071607a)
1"------------------------------------------------------------------------------
2"  Description: Vim Ada/Dec Ada compiler file
3"     Language: Ada (Dec Ada)
4"          $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
5"    Copyright: Copyright (C) 2006 Martin Krischik
6"   Maintainer:	Martin Krischik <[email protected]>
7"      $Author: krischik $
8"        $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
9"      Version: 4.6
10"    $Revision: 887 $
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"------------------------------------------------------------------------------
17
18if (exists("current_compiler") && current_compiler == "decada") || version < 700
19   finish
20endif
21let s:keepcpo= &cpo
22set cpo&vim
23
24let current_compiler = "decada"
25
26if !exists("g:decada")
27   let g:decada = decada#New ()
28
29   call ada#Map_Menu (
30     \'Dec Ada.Build',
31     \'<F7>',
32     \'call decada.Make ()')
33
34   call g:decada.Set_Session ()
35endif
36
37if exists(":CompilerSet") != 2
38   "
39   " plugin loaded by other means then the "compiler" command
40   "
41   command -nargs=* CompilerSet setlocal <args>
42endif
43
44execute "CompilerSet makeprg="     . escape (g:decada.Make_Command, ' ')
45execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')
46
47let &cpo = s:keepcpo
48unlet s:keepcpo
49
50finish " 1}}}
51
52"------------------------------------------------------------------------------
53"   Copyright (C) 2006  Martin Krischik
54"
55"   Vim is Charityware - see ":help license" or uganda.txt for licence details.
56"------------------------------------------------------------------------------
57" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
58" vim: foldmethod=marker
59