[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33746: [Ada-mode-users] bug#33746: 26.1; ada-mode 6.0.0 indentation
From: |
Simon Wright |
Subject: |
bug#33746: [Ada-mode-users] bug#33746: 26.1; ada-mode 6.0.0 indentation of comments in a case statement |
Date: |
Fri, 14 Dec 2018 18:24:17 +0000 |
On 14 Dec 2018, at 17:22, Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:
>
> Package: emacs, ada-mode
> X-Debbugs-CC: ada-mode-users@nongnu.org
>
> Hello,
>
> Here is another minor indentation bug in ada-mode 6.0.0; note how
> the indentation of the two comments is inconsistent:
>
> procedure When_Indentation is
> begin
> case A is
> when B =>
> -- This comment is indented correctly
> Foo;
> -- This comment is indented incorrectly: should be as above
> end case;
> end When_Indentation;
GPS goes too far the other way if you select (what was for me) the default,
Indent comments => unchecked, Align comments on keywords checked; the same with
both unchecked. ludo-problems.adb.
If I check just Indent comments, I get ludo-problems-2.adb.
ludo-problems.adb
Description: Binary data
ludo-problems-2.adb
Description: Binary data