bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto i


From: Yuan Fu
Subject: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation
Date: Fri, 13 Jan 2023 00:58:36 -0800


> On Jan 11, 2023, at 1:30 AM, Yuan Fu <casouri@gmail.com> wrote:
> 
> 
> 
>> On Jan 10, 2023, at 2:13 AM, Mohammed Sadiq <sadiq@sadiqpk.org> wrote:
>> 
>> On 2023-01-10 10:58, Yuan Fu wrote:
>>> Ah, right. Now it’s fixed. Thanks!
>>> Yuan
>> 
>> This broke the following comment styles:
>> 
>> /* some comment
>> */
>> 
>> indentation of above code gives:
>> 
>> /* some comment
>>  */
>> 
>> 
>> Also:
>> 
>> /*
>>  * some comment
>> */
>> 
>> where I expect:
>> 
>> /*
>> * some comment
>> */
> 
> This is easy to fix, I’ll push a fix soon.

I pushed the fix.

> 
>> 
>> If there are ways to add automated tests, it would be nice so that
>> these won't be broken when fixing something else.
> 
> I agree. I have been busy fixing all sorts of bugs and haven’t go around to 
> it :-(

I added the c-ts-mode tests you had in the patch.

Yuan




reply via email to

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