| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | "------------------------------------------------------------------------------ | 
					
						
							|  |  |  | "  Description: Vim Ada/Dec Ada compiler file | 
					
						
							|  |  |  | "     Language: Ada (Dec Ada) | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | "          $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $ | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | "    Copyright: Copyright (C) 2006 Martin Krischik | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | "   Maintainer:	Martin Krischik <krischik@users.sourceforge.net> | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | "      $Author: krischik $ | 
					
						
							|  |  |  | "        $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $ | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | "      Version: 4.6 | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | "    $Revision: 887 $ | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | "     $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/decada.vim $ | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | "      History: 21.07.2006 MK New Dec Ada | 
					
						
							|  |  |  | "               15.10.2006 MK Bram's suggestion for runtime integration | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | "               08.09.2006 MK Correct double load protection. | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | "    Help Page: compiler-decada | 
					
						
							|  |  |  | "------------------------------------------------------------------------------ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-01 21:14:34 +02:00
										 |  |  | if (exists("current_compiler") && current_compiler == "decada") || version < 700 | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  |    finish | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2012-05-01 21:14:34 +02:00
										 |  |  | let s:keepcpo= &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let current_compiler = "decada" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if !exists("g:decada") | 
					
						
							|  |  |  |    let g:decada = decada#New () | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |    call ada#Map_Menu ( | 
					
						
							|  |  |  |      \'Dec Ada.Build', | 
					
						
							|  |  |  |      \'<F7>', | 
					
						
							|  |  |  |      \'call decada.Make ()') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    call g:decada.Set_Session () | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if exists(":CompilerSet") != 2 | 
					
						
							|  |  |  |    " | 
					
						
							|  |  |  |    " plugin loaded by other means then the "compiler" command | 
					
						
							|  |  |  |    " | 
					
						
							|  |  |  |    command -nargs=* CompilerSet setlocal <args> | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | execute "CompilerSet makeprg="     . escape (g:decada.Make_Command, ' ') | 
					
						
							|  |  |  | execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-30 15:56:52 +02:00
										 |  |  | let &cpo = s:keepcpo | 
					
						
							|  |  |  | unlet s:keepcpo | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-05-05 18:24:42 +00:00
										 |  |  | finish " 1}}} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "------------------------------------------------------------------------------ | 
					
						
							|  |  |  | "   Copyright (C) 2006  Martin Krischik | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | "   Vim is Charityware - see ":help license" or uganda.txt for licence details. | 
					
						
							|  |  |  | "------------------------------------------------------------------------------ | 
					
						
							|  |  |  | " vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab | 
					
						
							|  |  |  | " vim: foldmethod=marker |