On Sat, Mar 5, 2016 at 5:29 PM, Simon Wright <[email protected]> wrote:
> Piotr, do you have a rule to propose as to when the comment should align with 
> the _next_ line? perhaps if the next line is less indented? (but what about 
> "end loop"?)

In GNAT sources the rule is, I think, to indent with the next line if
it starts with 'else' or 'elsif'. It would be great if ada-mode could
do this.

After reading the manual I thought that I can manually indent comments
that are followed by 'else' or 'elsif', and ada-mode will not move
them when I reindent a region or a buffer. This was not the case and
so I got confused.

Then I looked into the source code of ada-mode and did a similar
translation to Simon's :) However, to me the algorithm was not
transparent, so I decided to ask before attempting to write a patch.

-- 
Piotr Trojanek

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to