Menu

#72 C conditional operator indent fix

None
closed-accepted
nobody
None
5
2014-12-13
2014-12-12
No

Hello,

The attached patch fixes broken indent after '?:'

1 Attachments

Related

Patches: #72

Discussion

  • Darin

    Darin - 2014-12-12

    Krzysztof, do you have an example piece of code that exhibits the problem so I can verify the before-and-after of the patch before I accept it?

    Thanks!

     
    • Krzysztof Nikiel

      It's just the smart autoindent after '?:' like this:

      before patch:
      p = q < 10 ? 20 : 15;
      <excessive autoindent="" here="">z = func(10);

      after patch:
      p = q < 10 ? 20 : 15;
      z = func(10);

      On Fri, Dec 12, 2014 at 7:18 PM, Darin tanktalus@users.sf.net wrote:

      Krzysztof, do you have an example piece of code that exhibits the problem
      so I can verify the before-and-after of the patch before I accept it?

      Thanks!

      Status: open
      Group:
      Created: Fri Dec 12, 2014 07:29 AM UTC by Krzysztof Nikiel
      Last Updated: Fri Dec 12, 2014 07:29 AM UTC
      Owner: nobody

      Hello,

      The attached patch fixes broken indent after '?:'

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/fte/patches/72/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Patches: #72

  • Darin

    Darin - 2014-12-13
    • status: open --> closed-accepted
    • Group: -->
     

Log in to post a comment.