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: Yuan Fu
Subject: Re: Tree sitter support for C-like languages
Date: Fri, 11 Nov 2022 22:17:44 -0800


> On Nov 11, 2022, at 10:13 PM, Po Lu <luangruo@yahoo.com> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
>> 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?
> 
> Yes? c-basic-offset is 2 by default.

I should clarify, indentation of the second snippet is not suprising, I just 
wanted to show the difference between the two. The first snippet is what I 
didn’t expect.

Yuan


reply via email to

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