bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27130: c-mode indentation mistreats structs in function arguments


From: Sam Pagenkopf
Subject: bug#27130: c-mode indentation mistreats structs in function arguments
Date: Mon, 29 May 2017 08:33:35 -0500

In emacs 25.2.1.

Relevant code:

    draw_add(&battle.draw, (Drawn){
            .kind = DRAW_RECT,
                .size = {40,24},
                .pos.border = {
                .align = {ALIGN_LEFT, ALIGN_TOP},
                .dist = 3
            }
        }
        );

My guess is that it's reading (Drawn){...} as a statement, and the , as
the (,) C operator.

reply via email to

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