emacs-devel
[Top][All Lists]
Advanced

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

Re: C99 compound literals in c-mode


From: Nikolai Weibull
Subject: Re: C99 compound literals in c-mode
Date: Wed, 16 Aug 2017 19:52:16 +0200

On Wed, Aug 16, 2017 at 7:26 PM, Alan Mackenzie <address@hidden> wrote:
> Hello, Nikolai.
>
> On Tue, Aug 15, 2017 at 11:57:25 +0200, Nikolai Weibull wrote:
>> On Tue, Aug 15, 2017 at 11:03 AM, Stefan Monnier
>> <address@hidden> wrote:
>> >> C-mode doesn’t seem to understand C99’s compound literals, resulting in
>> >> rather broken indentation.  Is this correct and, if so, how difficult 
>> >> would
>> >> it be to add support for it?
>> >
>> > Could you show some example problematic code?
>
>> Yes:
>
>> struct a {
>>         int b;
>> };
>
>> int
>> main(void)
>> {
>>         return (struct a){
>>                 0
>>                         }.b;
>> }
>
> I'll take a look at it.  It shouldn't be too difficult.

Thank you, I really appreciate it.  (You may contact me on or off list
if you’d like more examples or other input.)

  Nikolai



reply via email to

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