ada-mode-users
[Top][All Lists]
Advanced

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

Re: [Ada-mode-users] Indentation of arrows in associations


From: Ludovic Brenta
Subject: Re: [Ada-mode-users] Indentation of arrows in associations
Date: Fri, 30 Sep 2016 14:47:34 +0200
User-agent: Roundcube Webmail/0.5.3

Stephen Leake wrote:
Actually, it indents to the previous comma; more precisely, the
"containing" cache set by the grammar.

This was designed to handle case statements (from test/ada_mode-nominal.adb):

         case Local_4 is
            when
              A | -- continuation line; ada-indent-broken = 2
              B |
              C
              => -- Ada mode 4.01 indentation
               for I in 1 .. 10 loop
                  Local_1 := Local_1 + Local_1;

For association_lists, the grammar sets the wrong containing cache;
here's a patch:

Thanks, I propagated it to ada-grammar-wy.el and it worked.

--
Ludovic Brenta.




reply via email to

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