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 07:37:00 +0100


On 12 November 2022 07:25:13 CET, Yuan Fu <casouri@gmail.com> wrote:
>>> 
>>> 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?
>>> 
>>> Yuan
>> 
>> The first one isn't gnu style, right? But it's an easy fix :)
>
>Thanks. It isn’t gnu style, but it would be nice if the first snippet still 
>indents normally. (So that I don’t need to set the indent style for different 
>projects.)
>
>Yuan
>

I agree! I'll fix it :)



reply via email to

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