From 6d1d779bc5f51a212a7ebdbc9cc2521cb538b2c0 Mon Sep 17 00:00:00 2001 From: Ythildyr Date: Sat, 13 Aug 2016 18:52:31 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Am=C3=A9lioration=20de=20la=20prise=20en=20?= =?UTF-8?q?charge=20des=20messages=20d'erreurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoload/gnat.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/gnat.vim b/autoload/gnat.vim index 0def672..c8fbf10 100644 --- a/autoload/gnat.vim +++ b/autoload/gnat.vim @@ -119,7 +119,8 @@ function gnat#New () " {{{1 \ 'Tags_Command' : '"gnat xref -P " . self.Project_File . " -v *.AD*"', \ 'Error_Format' : '%f:%l:%c: %trror: %m,' . \ '%f:%l:%c: %tarning: %m,' . - \ '%f:%l:%c: (%ttyle) %m'} + \ '%f:%l:%c: (%ttyle) %m,' . + \ '%f:%l:%c: %m'} return l:Retval endfunction gnat#New " }}}1 From 68436822295ec70fabbd82aff86cc416dbe4f5b4 Mon Sep 17 00:00:00 2001 From: Ythildyr Date: Sat, 13 Aug 2016 18:53:41 +0200 Subject: [PATCH 2/2] =?UTF-8?q?La=20compilation=20se=20fait=20maintenant?= =?UTF-8?q?=20par=20:Gnatmake=20et=20plus=20=20et=20mise=20=C3=A0=20jo?= =?UTF-8?q?ur=20de=20la=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiler/gnat.vim | 2 +- doc/ft_ada.txt | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/compiler/gnat.vim b/compiler/gnat.vim index d7ec55b..9d34eb7 100644 --- a/compiler/gnat.vim +++ b/compiler/gnat.vim @@ -30,7 +30,7 @@ if !exists("g:gnat") call ada#Map_Menu ( \ 'GNAT.Build', - \ '', + \ ':GnatMake', \ 'call gnat.Make ()') call ada#Map_Menu ( \ 'GNAT.Pretty Print', diff --git a/doc/ft_ada.txt b/doc/ft_ada.txt index 074a7c3..465beef 100644 --- a/doc/ft_ada.txt +++ b/doc/ft_ada.txt @@ -156,7 +156,7 @@ environment. GNAT is the only free (beer and speech) Ada compiler available. There are several version available which differentiate in the licence terms used. -The GNAT compiler plug-in will perform a compile on pressing and then +The GNAT compiler plug-in will perform a compile on pressing |:GnatMake| and then immediately shows the result. You can set the project file to be used by setting: > @@ -224,7 +224,7 @@ g:gnat.Error_Format string *compiler-vaxada* *compiler-compaqada* Dec Ada (also known by - in chronological order - VAX Ada, Dec Ada, Compaq Ada -and HP Ada) is a fairly dated Ada 83 compiler. Support is basic: will +and HP Ada) is a fairly dated Ada 83 compiler. Support is basic: |:GnatMake| will compile the current unit. The Dec Ada compiler expects the package name and not the file name to be @@ -389,6 +389,9 @@ set makes no difference. :AdaTypes *:AdaTypes* Toggles standard types (|g:ada_standard_types|) colour. +:GnatMake *:GnatMake* + Calls |g:gnat.Make()| + :GnatFind *:GnatFind* Calls |g:gnat.Find()|