comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ada-mode failing at formatting still
Date: Sun, 20 May 2018 21:19:17 +0100
Date: 2018-05-20T21:19:17+01:00	[thread overview]
Message-ID: <lya7su9j22.fsf@pushface.org> (raw)
In-Reply-To: b6eb2ec4-d8df-4ad0-8b6f-a439d33c70e8@googlegroups.com

Lucretia <laguest9000@googlemail.com> writes:

> I thought I'd reinstall emacs and try ada-mode again, but it's failing
> to format properly.
>
> https://bpaste.net/show/5cb547ca16cc was formatted using ada-mode, for
> some reason it won't indent the Label properly.

Because ada-indent-label is defaulted to -3. If you customise it to 0,
-gnaty won't complain any more.

begin
   Ada.Text_IO.Put_Line ("hello");

   Label :
   declare
   begin
      <<Another_Label>>
      null;
   end Label;
end Test;

  parent reply	other threads:[~2018-05-20 20:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-20 18:51 ada-mode failing at formatting still Lucretia
2018-05-20 18:59 ` Dan'l Miller
2018-05-20 19:03   ` Lucretia
2018-05-20 19:18     ` Dan'l Miller
2018-05-20 23:55   ` Shark8
2018-05-21  0:19   ` Paul Rubin
2018-05-21  3:28     ` Dan'l Miller
2018-05-21  3:37       ` Paul Rubin
2018-05-20 20:19 ` Simon Wright [this message]
2018-05-20 20:42   ` Lucretia
2018-05-20 21:07     ` Dan'l Miller
2018-05-21  6:49       ` Simon Wright
2018-05-21  7:11     ` Simon Wright
2018-05-21  8:57       ` Lucretia
2018-05-21 12:31         ` Simon Wright
2018-05-21 12:51           ` Lucretia
2018-05-21 13:35           ` Simon Wright
2018-05-21  7:18     ` Simon Wright
2018-05-21  8:59       ` Lucretia
2018-05-20 20:19 ` Lucretia
2018-05-21 16:35 ` Lucretia
2018-05-21 16:37   ` Dan'l Miller
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox