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 08:22:29 +0100

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

Try this one instead:


Attachment: 0001-Add-Tree-Sitter-modes-for-C-like-languages.patch
Description: Text Data


reply via email to

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