emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree sitter support for C-like languages


From: Theodor Thornhill
Subject: Re: Tree sitter support for C-like languages
Date: Sat, 12 Nov 2022 09:43:37 +0100


On 12 November 2022 09:05:25 CET, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Fri, 11 Nov 2022 21:43:21 -0800
>> Cc: emacs-devel@gnu.org
>> 
>> I noticed that with the default indent style, Emacs indents like this:
>> 
>> int main () {
>>               for (int j = 0; j < 5; j++)
>>                 a[j] = 3;
>>               int i = 1;
>>               swap(i, a[i+1]);
>>               Point p = {0, 1};
>> }
>> 
>> int main ()
>> {
>>   for (int j = 0; j < 5; j++)
>>     a[j] = 3;
>>   int i = 1;
>>   swap(i, a[i+1]);
>>   Point p = {0, 1};
>> }
>> 
>> Is this expected?
>
>With which indentation style?

Gnu, but I made this work in the gnu style as well.
Theo



reply via email to

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