GNU bug report logs - #61398
29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '='

Previous Next

Package: emacs;

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

Date: Fri, 10 Feb 2023 06:24:02 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


Message #8 received at 61398 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61398 <at> debbugs.gnu.org
Subject: Re: bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair  is
 in line with '='
Date: Sun, 12 Feb 2023 00:22:36 -0800
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:

> The closing '};' is indented wrong in the following array definition:
>
> const char *emoticons[][2] = {
>   {":)", "🙂"},
>   {";)", "😉"},
>   {":(", "🙁"},
>   };
>
> The expected indentation:
>
> const char *emoticons[][2] = {
>   {":)", "🙂"},
>   {";)", "😉"},
>   {":(", "🙁"},
> };

I see, this problem is due to priorities between indentations rules.
Should be easy to fix.

Yuan




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

Previous Next


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