Ada mode 5.1.4 does this:

   Monitor : constant Boolean
     := Read (foo);

   Monitor : constant Boolean :=
     Read (foo);

   Monitor : Boolean
     renames Read (foo);

   Local_Exception_1 : exception renames
     Global_Exception_1;

   Local_Exception_1 : exception
     renames Global_Exception_1;

GPS 6.0.2 does:

   Monitor : constant Boolean
     := Read (foo);

   Monitor : constant Boolean :=
               Read (foo);

   Monitor : Boolean
     renames Read (foo);

   Local_Exception_1 : exception renames
                         Global_Exception_1;

   Local_Exception_1 : exception
   renames Global_Exception_1;

I find the GPS style inconsistent; indentation should not depend on
whether the line break is before or after ':='.

On the other hand, there is some logic to indenting the continuation
line relative to ':' rather then the line begin, particularly in a long
list of initialized object declarations.

We could introduce a new option for this.

Comments?

-- 
-- Stephe

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

Reply via email to