On 5 Mar 2016, at 17:29, 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"?)

I made the attached patch, which results in

--  hello
procedure GNAT_Comment_Indent is
begin
   --  a comment
   if True then
      null;
      
   --  some comment indented with ELSE
      
   else
      null;
   end if;
   
   for J in 1 .. 10 loop
      --  comment
      null;
   --  comment
   end loop;
end GNAT_Comment_Indent;
--  end

Not tested against anything else!

Attachment: ada-wisi.el.diff
Description: Binary data

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

Reply via email to