annotate runtime/compiler/gnat.vim @ 28548:a54564337e89 v8.2.4798

patch 8.2.4798: t_8u option was reset even when set by the user Commit: https://github.com/vim/vim/commit/dbec26d7893dca4ff38fa4b96ac91203d30ccae5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 20 19:08:50 2022 +0100 patch 8.2.4798: t_8u option was reset even when set by the user Problem: t_8u option was reset even when set by the user. Solution: Only reset t_8u when using the default value. (closes https://github.com/vim/vim/issues/10239)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 20:15:04 +0200
parents d1e4abe8342c
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
1 "------------------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Description: Vim Ada/GNAT compiler file
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
3 " Language: Ada (GNAT)
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
4 " $Id: gnat.vim 887 2008-07-08 14:29:01Z krischik $
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
5 " Copyright: Copyright (C) 2006 Martin Krischik
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
6 " Maintainer: Martin Krischi <krischik@users.sourceforge.net>k
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
7 " Ned Okie <nokie@radford.edu>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
8 " $Author: krischik $
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
9 " $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
10 " Version: 4.6
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
11 " $Revision: 887 $
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
12 " $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/gnat.vim $
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
13 " History: 24.05.2006 MK Unified Headers
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
14 " 16.07.2006 MK Ada-Mode as vim-ball
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
15 " 15.10.2006 MK Bram's suggestion for runtime integration
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
16 " 19.09.2007 NO use project file only when there is a project
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
17 " Help Page: compiler-gnat
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
18 "------------------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
19
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
20 if (exists("current_compiler")&& current_compiler == "gnat") || version < 700
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
21 finish
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
22 endif
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
23 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
24 set cpo&vim
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
25
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
26 let current_compiler = "gnat"
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
27
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
28 if !exists("g:gnat")
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
29 let g:gnat = gnat#New ()
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
30
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
31 call ada#Map_Menu (
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
32 \ 'GNAT.Build',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
33 \ '<F7>',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
34 \ 'call gnat.Make ()')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
35 call ada#Map_Menu (
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
36 \ 'GNAT.Pretty Print',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
37 \ ':GnatPretty',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
38 \ 'call gnat.Pretty ()')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
39 call ada#Map_Menu (
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
40 \ 'GNAT.Tags',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
41 \ ':GnatTags',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
42 \ 'call gnat.Tags ()')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
43 call ada#Map_Menu (
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
44 \ 'GNAT.Find',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
45 \ ':GnatFind',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
46 \ 'call gnat.Find ()')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
47 call ada#Map_Menu (
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
48 \ 'GNAT.Set Projectfile\.\.\.',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
49 \ ':SetProject',
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
50 \ 'call gnat.Set_Project_File ()')
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
51
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1125
diff changeset
52 call g:gnat.Set_Session ()
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
53 endif
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
54
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
55 if exists(":CompilerSet") != 2
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
56 "
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
57 " plugin loaded by other means then the "compiler" command
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
58 "
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
59 command -nargs=* CompilerSet setlocal <args>
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
60 endif
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
61
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
62 execute "CompilerSet makeprg=" . escape (g:gnat.Get_Command('Make'), ' ')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
63 execute "CompilerSet errorformat=" . escape (g:gnat.Error_Format, ' ')
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
64
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
65 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
66 unlet s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
67
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
68 finish " 1}}}
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
69
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
70 "------------------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
71 " Copyright (C) 2006 Martin Krischik
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
72 "
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
73 " Vim is Charityware - see ":help license" or uganda.txt for licence details.
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
74 "------------------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
75 " vim: textwidth=0 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
76 " vim: foldmethod=marker