annotate runtime/doc/ft_ada.txt @ 9291:bff3cd5cf922 v7.4.1928

commit https://github.com/vim/vim/commit/76ae22fef3cb224ca7fbf97517f881e825d4d0c2 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 20:00:29 2016 +0200 patch 7.4.1928 Problem: Overwriting pointer argument. Solution: Assign to what it points to. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Jun 2016 20:15:06 +0200
parents 359743c1f59a
children 9f48eab77d62
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5294
359743c1f59a release version 7.4
Bram Moolenaar <bram@vim.org>
parents: 5247
diff changeset
1 *ft_ada.txt* For Vim version 7.4. Last change: 2010 Jul 20
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
2
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
3
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
4 ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
5
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 ADA *ada.vim*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
7
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8 1. Syntax Highlighting |ft-ada-syntax|
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
9 2. File type Plug-in |ft-ada-plugin|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
10 3. Omni Completion |ft-ada-omni|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
11 3.1 Omni Completion with "gnat xref" |gnat-xref|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
12 3.2 Omni Completion with "ctags" |ada-ctags|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
13 4. Compiler Support |ada-compiler|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 4.1 GNAT |compiler-gnat|
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
15 4.2 Dec Ada |compiler-decada|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16 5. References |ada-reference|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
17 5.1 Options |ft-ada-options|
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
18 5.2 Commands |ft-ada-commands|
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
19 5.3 Variables |ft-ada-variables|
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
20 5.4 Constants |ft-ada-constants|
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
21 5.5 Functions |ft-ada-functions|
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
22 6. Extra Plug-ins |ada-extra-plugins|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
23
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
24 ==============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
25 1. Syntax Highlighting ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
26 *ft-ada-syntax*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
27
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
28 This mode is designed for the 2005 edition of Ada ("Ada 2005"), which includes
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
29 support for objected-programming, protected types, and so on. It handles code
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
30 written for the original Ada language ("Ada83", "Ada87", "Ada95") as well,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
31 though code which uses Ada 2005-only keywords will be wrongly colored (such
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
32 code should be fixed anyway). For more information about Ada, see
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
33 http://www.adapower.com.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
34
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
35 The Ada mode handles a number of situations cleanly.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
36
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
37 For example, it knows that the "-" in "-5" is a number, but the same character
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
38 in "A-5" is an operator. Normally, a "with" or "use" clause referencing
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
39 another compilation unit is coloured the same way as C's "#include" is coloured.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
40 If you have "Conditional" or "Repeat" groups coloured differently, then "end
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
41 if" and "end loop" will be coloured as part of those respective groups.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
42
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
43 You can set these to different colours using vim's "highlight" command (e.g.,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
44 to change how loops are displayed, enter the command ":hi Repeat" followed by
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
45 the colour specification; on simple terminals the colour specification
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
46 ctermfg=White often shows well).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
47
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
48 There are several options you can select in this Ada mode. See |ft-ada-options|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
49 for a complete list.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
50
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
51 To enable them, assign a value to the option. For example, to turn one on:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
52 >
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
53 > let g:ada_standard_types = 1
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
54 >
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
55 To disable them use ":unlet". Example:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
56 >
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
57 > unlet g:ada_standard_types
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
58
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
59 You can just use ":" and type these into the command line to set these
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
60 temporarily before loading an Ada file. You can make these option settings
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
61 permanent by adding the "let" command(s), without a colon, to your "~/.vimrc"
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
62 file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
63
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
64 Even on a slow (90Mhz) PC this mode works quickly, but if you find the
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
65 performance unacceptable, turn on |g:ada_withuse_ordinary|.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
66
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
67 Syntax folding instructions (|fold-syntax|) are added when |g:ada_folding| is
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
68 set.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
69
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
70 ==============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
71 2. File type Plug-in ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
72 *ft-ada-indent* *ft-ada-plugin*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
73
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
74 The Ada plug-in provides support for:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
75
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
76 - auto indenting (|indent.txt|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
77 - insert completion (|i_CTRL-N|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
78 - user completion (|i_CTRL-X_CTRL-U|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
79 - tag searches (|tagsrch.txt|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
80 - Quick Fix (|quickfix.txt|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
81 - backspace handling (|'backspace'|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
82 - comment handling (|'comments'|, |'commentstring'|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
83
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
84 The plug-in only activates the features of the Ada mode whenever an Ada
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
85 file is opened and adds Ada related entries to the main and pop-up menu.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
86
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
87 ==============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
88 3. Omni Completion ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
89 *ft-ada-omni*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
90
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
91 The Ada omni-completions (|i_CTRL-X_CTRL-O|) uses tags database created either
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
92 by "gnat xref -v" or the "exuberant Ctags (http://ctags.sourceforge.net). The
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
93 complete function will automatically detect which tool was used to create the
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
94 tags file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
95
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
96 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
97 3.1 Omni Completion with "gnat xref" ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
98 *gnat-xref*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
99
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
100 GNAT XREF uses the compiler internal information (ali-files) to produce the
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
101 tags file. This has the advantage to be 100% correct and the option of deep
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
102 nested analysis. However the code must compile, the generator is quite
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
103 slow and the created tags file contains only the basic Ctags information for
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
104 each entry - not enough for some of the more advanced Vim code browser
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
105 plug-ins.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
106
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
107 NOTE: "gnat xref -v" is very tricky to use as it has almost no diagnostic
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
108 output - If nothing is printed then usually the parameters are wrong.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
109 Here some important tips:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
110
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
111 1) You need to compile your code first and use the "-aO" option to point to
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
112 your .ali files.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
113 2) "gnat xref -v ../Include/adacl.ads" won't work - use the "gnat xref -v
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
114 -aI../Include adacl.ads" instead.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
115 3) "gnat xref -v -aI../Include *.ad?" won't work - use "cd ../Include" and
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
116 then "gnat xref -v *.ad?"
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
117 4) Project manager support is completely broken - don't even try "gnat xref
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
118 -Padacl.gpr".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
119 5) VIM is faster when the tags file is sorted - use "sort --unique
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
120 --ignore-case --output=tags tags" .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
121 6) Remember to insert "!_TAG_FILE_SORTED 2 %sort ui" as first line to mark
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
122 the file assorted.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
123
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
124 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
125 3.2 Omni Completion with "ctags"~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
126 *ada-ctags*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
127
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
128 Exuberant Ctags uses its own multi-language code parser. The parser is quite
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
129 fast, produces a lot of extra information (hence the name "Exuberant Ctags")
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
130 and can run on files which currently do not compile.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
131
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
132 There are also lots of other Vim-tools which use exuberant Ctags.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
133
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
134 You will need to install a version of the Exuberant Ctags which has Ada
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
135 support patched in. Such a version is available from the GNU Ada Project
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
136 (http://gnuada.sourceforge.net).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
137
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
138 The Ada parser for Exuberant Ctags is fairly new - don't expect complete
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
139 support yet.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
140
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
141 ==============================================================================
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
142 4. Compiler Support ~
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
143 *ada-compiler*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
144
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
145 The Ada mode supports more than one Ada compiler and will automatically load the
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
146 compiler set in |g:ada_default_compiler| whenever an Ada source is opened. The
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
147 provided compiler plug-ins are split into the actual compiler plug-in and a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
148 collection of support functions and variables. This allows the easy
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
149 development of specialized compiler plug-ins fine tuned to your development
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
150 environment.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
151
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
152 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
153 4.1 GNAT ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
154 *compiler-gnat*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
155
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
156 GNAT is the only free (beer and speech) Ada compiler available. There are
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
157 several versions available which differ in the licence terms used.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
158
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
159 The GNAT compiler plug-in will perform a compile on pressing <F7> and then
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
160 immediately shows the result. You can set the project file to be used by
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
161 setting:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
162 >
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
163 > call g:gnat.Set_Project_File ('my_project.gpr')
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
164
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
165 Setting a project file will also create a Vim session (|views-sessions|) so -
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
166 like with the GPS - opened files, window positions etc. will be remembered
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
167 separately for all projects.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
168
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
169 *gnat_members*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
170 GNAT OBJECT ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
171
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
172 *g:gnat.Make()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
173 g:gnat.Make()
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
174 Calls |g:gnat.Make_Command| and displays the result inside a
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
175 |quickfix| window.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
176
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
177 *g:gnat.Pretty()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
178 g:gnat.Pretty()
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
179 Calls |g:gnat.Pretty_Program|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
180
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
181 *g:gnat.Find()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
182 g:gnat.Find()
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
183 Calls |g:gnat.Find_Program|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
184
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
185 *g:gnat.Tags()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
186 g:gnat.Tags()
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
187 Calls |g:gnat.Tags_Command|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
188
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
189 *g:gnat.Set_Project_File()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
190 g:gnat.Set_Project_File([{file}])
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
191 Set gnat project file and load associated session. An open
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
192 project will be closed and the session written. If called
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
193 without file name the file selector opens for selection of a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
194 project file. If called with an empty string then the project
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
195 and associated session are closed.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
196
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
197 *g:gnat.Project_File*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
198 g:gnat.Project_File string
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
199 Current project file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
200
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
201 *g:gnat.Make_Command*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
202 g:gnat.Make_Command string
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
203 External command used for |g:gnat.Make()| (|'makeprg'|).
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
204
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
205 *g:gnat.Pretty_Program*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
206 g:gnat.Pretty_Program string
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
207 External command used for |g:gnat.Pretty()|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
208
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
209 *g:gnat.Find_Program*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
210 g:gnat.Find_Program string
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
211 External command used for |g:gnat.Find()|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
212
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
213 *g:gnat.Tags_Command*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
214 g:gnat.Tags_Command string
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
215 External command used for |g:gnat.Tags()|
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
216
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
217 *g:gnat.Error_Format*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
218 g:gnat.Error_Format string
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
219 Error format (|'errorformat'|)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
220
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
221 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
222 4.2 Dec Ada ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
223 *compiler-hpada* *compiler-decada*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
224 *compiler-vaxada* *compiler-compaqada*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
225
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
226 Dec Ada (also known by - in chronological order - VAX Ada, Dec Ada, Compaq Ada
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
227 and HP Ada) is a fairly dated Ada 83 compiler. Support is basic: <F7> will
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
228 compile the current unit.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
229
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
230 The Dec Ada compiler expects the package name and not the file name to be
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
231 passed as a parameter. The compiler plug-in supports the usual file name
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
232 convention to convert the file into a unit name. Both '-' and '__' are allowed
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
233 as separators.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
234
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
235 *decada_members*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
236 DEC ADA OBJECT ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
237
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
238 *g:decada.Make()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
239 g:decada.Make() function
2324
0a258a67051d In Visual mode with 'showcmd' display the number of bytes and characters.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
240 Calls |g:decada.Make_Command| and displays the result inside a
0a258a67051d In Visual mode with 'showcmd' display the number of bytes and characters.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
241 |quickfix| window.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
242
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
243 *g:decada.Unit_Name()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
244 g:decada.Unit_Name() function
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
245 Get the Unit name for the current file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
246
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
247 *g:decada.Make_Command*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
248 g:decada.Make_Command string
2324
0a258a67051d In Visual mode with 'showcmd' display the number of bytes and characters.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
249 External command used for |g:decada.Make()| (|'makeprg'|).
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
250
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
251 *g:decada.Error_Format*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
252 g:decada.Error_Format| string
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
253 Error format (|'errorformat'|).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
254
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
255 ==============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
256 5. References ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
257 *ada-reference*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
258
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
259 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
260 5.1 Options ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
261 *ft-ada-options*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
262
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
263 *g:ada_standard_types*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
264 g:ada_standard_types bool (true when exists)
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
265 Highlight types in package Standard (e.g., "Float").
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
266
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
267 *g:ada_space_errors*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
268 *g:ada_no_trail_space_error*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
269 *g:ada_no_tab_space_error*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
270 *g:ada_all_tab_usage*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
271 g:ada_space_errors bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
272 Highlight extraneous errors in spaces ...
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
273 g:ada_no_trail_space_error
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
274 - but ignore trailing spaces at the end of a line
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
275 g:ada_no_tab_space_error
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
276 - but ignore tabs after spaces
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
277 g:ada_all_tab_usage
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
278 - highlight all tab use
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
279
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
280 *g:ada_line_errors*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
281 g:ada_line_errors bool (true when exists)
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
282 Highlight lines which are too long. Note: This highlighting
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
283 option is quite CPU intensive.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
284
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
285 *g:ada_rainbow_color*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
286 g:ada_rainbow_color bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
287 Use rainbow colours for '(' and ')'. You need the
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
288 rainbow_parenthesis for this to work.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
289
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
290 *g:ada_folding*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
291 g:ada_folding set ('sigpft')
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
292 Use folding for Ada sources.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
293 's': activate syntax folding on load
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
294 'p': fold packages
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
295 'f': fold functions and procedures
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
296 't': fold types
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
297 'c': fold conditionals
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
298 'g': activate gnat pretty print folding on load
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
299 'i': lone 'is' folded with line above
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
300 'b': lone 'begin' folded with line above
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
301 'p': lone 'private' folded with line above
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
302 'x': lone 'exception' folded with line above
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
303 'i': activate indent folding on load
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
304
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
305 Note: Syntax folding is in an early (unusable) stage and
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
306 indent or gnat pretty folding is suggested.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
307
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
308 For gnat pretty folding to work the following settings are
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
309 suggested: -cl3 -M79 -c2 -c3 -c4 -A1 -A2 -A3 -A4 -A5
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
310
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
311 For indent folding to work the following settings are
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
312 suggested: shiftwidth=3 softtabstop=3
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
313
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
314 *g:ada_abbrev*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
315 g:ada_abbrev bool (true when exists)
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
316 Add some abbreviations. This feature is more or less superseded
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
317 by the various completion methods.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
318
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
319 *g:ada_withuse_ordinary*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
320 g:ada_withuse_ordinary bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
321 Show "with" and "use" as ordinary keywords (when used to
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
322 reference other compilation units they're normally highlighted
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
323 specially).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
324
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
325 *g:ada_begin_preproc*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
326 g:ada_begin_preproc bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
327 Show all begin-like keywords using the colouring of C
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
328 preprocessor commands.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
329
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
330 *g:ada_omni_with_keywords*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
331 g:ada_omni_with_keywords
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
332 Add Keywords, Pragmas, Attributes to omni-completions
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
333 (|compl-omni|). Note: You can always complete then with user
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
334 completion (|i_CTRL-X_CTRL-U|).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
335
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
336 *g:ada_extended_tagging*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
337 g:ada_extended_tagging enum ('jump', 'list')
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
338 use extended tagging, two options are available
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
339 'jump': use tjump to jump.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
340 'list': add tags quick fix list.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
341 Normal tagging does not support function or operator
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
342 overloading as these features are not available in C and
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
343 tagging was originally developed for C.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
344
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
345 *g:ada_extended_completion*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
346 g:ada_extended_completion
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
347 Uses extended completion for <C-N> and <C-R> completions
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
348 (|i_CTRL-N|). In this mode the '.' is used as part of the
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
349 identifier so that 'Object.Method' or 'Package.Procedure' are
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
350 completed together.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
351
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
352 *g:ada_gnat_extensions*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
353 g:ada_gnat_extensions bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
354 Support GNAT extensions.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
355
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
356 *g:ada_with_gnat_project_files*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
357 g:ada_with_gnat_project_files bool (true when exists)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
358 Add gnat project file keywords and Attributes.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
359
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
360 *g:ada_default_compiler*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
361 g:ada_default_compiler string
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
362 set default compiler. Currently supported are 'gnat' and
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
363 'decada'.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
364
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
365 An "exists" type is a boolean considered true when the variable is defined and
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
366 false when the variable is undefined. The value to which the variable is set
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
367 makes no difference.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
368
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
369 ------------------------------------------------------------------------------
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
370 5.2 Commands ~
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
371 *ft-ada-commands*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
372
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
373 :AdaRainbow *:AdaRainbow*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
374 Toggles rainbow colour (|g:ada_rainbow_color|) mode for
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
375 '(' and ')'.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
376
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
377 :AdaLines *:AdaLines*
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
378 Toggles line error (|g:ada_line_errors|) display.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
379
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
380 :AdaSpaces *:AdaSpaces*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
381 Toggles space error (|g:ada_space_errors|) display.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
382
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
383 :AdaTagDir *:AdaTagDir*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
384 Creates tags file for the directory of the current file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
385
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
386 :AdaTagFile *:AdaTagFile*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
387 Creates tags file for the current file.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
388
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
389 :AdaTypes *:AdaTypes*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
390 Toggles standard types (|g:ada_standard_types|) colour.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
391
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
392 :GnatFind *:GnatFind*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
393 Calls |g:gnat.Find()|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
394
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
395 :GnatPretty *:GnatPretty*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
396 Calls |g:gnat.Pretty()|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
397
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
398 :GnatTags *:GnatTags*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
399 Calls |g:gnat.Tags()|
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
400
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
401 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
402 5.3 Variables ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
403 *ft-ada-variables*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
404
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
405 *g:gnat*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
406 g:gnat object
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
407 Control object which manages GNAT compiles. The object
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
408 is created when the first Ada source code is loaded provided
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
409 that |g:ada_default_compiler| is set to 'gnat'. See
2324
0a258a67051d In Visual mode with 'showcmd' display the number of bytes and characters.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
410 |gnat_members| for details.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
411
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
412 *g:decada*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
413 g:decada object
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
414 Control object which manages Dec Ada compiles. The object
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
415 is created when the first Ada source code is loaded provided
2337
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
416 that |g:ada_default_compiler| is set to 'decada'. See
a0f87fc19d1d Better conceal in help. (partly by Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2324
diff changeset
417 |decada_members| for details.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
418
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
419 ------------------------------------------------------------------------------
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
420 5.4 Constants ~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
421 *ft-ada-constants*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
422
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
423 All constants are locked. See |:lockvar| for details.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
424
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
425 *g:ada#WordRegex*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
426 g:ada#WordRegex string
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
427 Regular expression to search for Ada words.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
428
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
429 *g:ada#DotWordRegex*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
430 g:ada#DotWordRegex string
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
431 Regular expression to search for Ada words separated by dots.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
432
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
433 *g:ada#Comment*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
434 g:ada#Comment string
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
435 Regular expression to search for Ada comments.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
436
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
437 *g:ada#Keywords*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
438 g:ada#Keywords list of dictionaries
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
439 List of keywords, attributes etc. pp. in the format used by
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
440 omni completion. See |complete-items| for details.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
441
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
442 *g:ada#Ctags_Kinds*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
443 g:ada#Ctags_Kinds dictionary of lists
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
444 Dictionary of the various kinds of items which the Ada support
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
445 for Ctags generates.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
446
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
447 ------------------------------------------------------------------------------
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
448 5.5 Functions ~
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
449 *ft-ada-functions*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
450
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
451 ada#Word([{line}, {col}]) *ada#Word()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
452 Return full name of Ada entity under the cursor (or at given
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
453 line/column), stripping white space/newlines as necessary.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
454
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
455 ada#List_Tag([{line}, {col}]) *ada#Listtags()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
456 List all occurrences of the Ada entity under the cursor (or at
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
457 given line/column) inside the quick-fix window.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
458
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
459 ada#Jump_Tag ({ident}, {mode}) *ada#Jump_Tag()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
460 List all occurrences of the Ada entity under the cursor (or at
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
461 given line/column) in the tag jump list. Mode can either be
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
462 'tjump' or 'stjump'.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
463
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
464 ada#Create_Tags ({option}) *ada#Create_Tags()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
465 Creates tag file using Ctags. The option can either be 'file'
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
466 for the current file, 'dir' for the directory of the current
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
467 file or a file name.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
468
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
469 gnat#Insert_Tags_Header() *gnat#Insert_Tags_Header()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
470 Adds the tag file header (!_TAG_) information to the current
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
471 file which are missing from the GNAT XREF output.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
472
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
473 ada#Switch_Syntax_Option ({option}) *ada#Switch_Syntax_Option()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
474 Toggles highlighting options on or off. Used for the Ada menu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
475
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
476 *gnat#New()*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
477 gnat#New ()
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
478 Create a new gnat object. See |g:gnat| for details.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
479
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
480
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
481 ==============================================================================
2581
e8a482a7fa6c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
482 6. Extra Plugins ~
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
483 *ada-extra-plugins*
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
484
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
485 You can optionally install the following extra plug-ins. They work well with
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
486 Ada and enhance the ability of the Ada mode:
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
487
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
488 backup.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
489 http://www.vim.org/scripts/script.php?script_id=1537
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
490 Keeps as many backups as you like so you don't have to.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
491
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
492 rainbow_parenthsis.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
493 http://www.vim.org/scripts/script.php?script_id=1561
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
494 Very helpful since Ada uses only '(' and ')'.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
495
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
496 nerd_comments.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
497 http://www.vim.org/scripts/script.php?script_id=1218
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
498 Excellent commenting and uncommenting support for almost any
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
499 programming language.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
500
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
501 matchit.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
502 http://www.vim.org/scripts/script.php?script_id=39
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
503 '%' jumping for any language. The normal '%' jump only works for '{}'
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
504 style languages. The Ada mode will set the needed search patterns.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
505
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
506 taglist.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
507 http://www.vim.org/scripts/script.php?script_id=273
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
508 Source code explorer sidebar. There is a patch for Ada available.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
509
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
510 The GNU Ada Project distribution (http://gnuada.sourceforge.net) of Vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
511 contains all of the above.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
512
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
513 ==============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
514 vim: textwidth=78 nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
515 vim: filetype=help