bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then"


From: Ludovic Brenta
Subject: bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then"
Date: Fri, 14 Dec 2018 16:39:09 +0100

Package: emacs, ada-mode
X-Debbugs-CC: ada-mode-users@nongnu.org

Hello,

With ada-mode 6.0.0, comments appearing on a line of their on before "then" are indented like "then"; we think they should be indented one more level:

procedure Comment_Indentation is
begin
  if A
    -- This comment is indented correctly
    and then B
  -- This comment is indented incorrectly, should be as above
  then
    -- This comment is indented correctly
    null;
  elsif C
    -- This comment is indented correctly
    and then D
  -- This comment is indented incorrectly, should be as above
  then
    null;
  end if;
end Comment_Indentation;

This "incorrect" indentation is a change from ada-mode 5.2.1 which can
affect many lines in our large code base.  In 5.2.1, all comments are
indented in the same way.

I have browsed the ada-mode customization variables but did not see
which one, if any, allows us to customize this behavior.  (note: we
set ada-indent to 2).

--
Ludovic Brenta.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]