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: Eli Zaretskii
Subject: Re: Tree sitter support for C-like languages
Date: Sat, 12 Nov 2022 10:05:25 +0200

> 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?



reply via email to

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