GNU bug report logs - #61291
29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Sun, 5 Feb 2023 09:29:01 UTC

Severity: normal

Found in version 29.0.60

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 61291-done <at> debbugs.gnu.org
Subject: bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented
Date: Mon, 06 Feb 2023 11:32:20 +0530
On 2023-02-06 04:52, Yuan Fu wrote:
> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
> 
>> ; in the following code is not indented:
>> 
>> while (str_a[i++] == str_b[j++])
>> ;
>> 
>> expected indentation:
>> 
>> while (str_a[i++] == str_b[j++])
>>   ;
> 
> Thanks! I pushed a fix.
> 
> Yuan

This seems to have not fixed when tested with the latest build.
Also, this has broken auto indentation for other code, eg:

if (true)
do_something();




This bug report was last modified 2 years and 161 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.