GNU bug report logs -
#33743
26.1; ada-mode 6.0.0 indentation of comments before "then"
Previous Next
Reported by: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
Date: Fri, 14 Dec 2018 15:40:02 UTC
Severity: minor
Found in version 26.1
Done: Stephen Leake <stephen_leake <at> stephe-leake.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Package: emacs, ada-mode
X-Debbugs-CC: ada-mode-users <at> 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.
This bug report was last modified 6 years and 115 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.