all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '='
@ 2023-02-10  6:23 Mohammed Sadiq
  2023-02-12  8:22 ` Yuan Fu
  2023-02-13  3:51 ` Yuan Fu
  0 siblings, 2 replies; 3+ messages in thread
From: Mohammed Sadiq @ 2023-02-10  6:23 UTC (permalink / raw)
  To: 61398

The closing '};' is indented wrong in the following array definition:

const char *emoticons[][2] = {
   {":)", "🙂"},
   {";)", "😉"},
   {":(", "🙁"},
   };

The expected indentation:

const char *emoticons[][2] = {
   {":)", "🙂"},
   {";)", "😉"},
   {":(", "🙁"},
};


The issue is not limited to arrays, but also types like structs.


In GNU Emacs 29.0.60 (build 17, x86_64-pc-linux-gnu, GTK+ Version
  3.24.36, cairo version 1.16.0) of 2023-02-10 built on purism
Repository revision: 51901736965f9a6f07938fa4399d14c9283437c5
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101006
System Description: Debian GNU/Linux bookworm/sid





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair  is in line with '='
  2023-02-10  6:23 bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '=' Mohammed Sadiq
@ 2023-02-12  8:22 ` Yuan Fu
  2023-02-13  3:51 ` Yuan Fu
  1 sibling, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2023-02-12  8:22 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61398


Mohammed Sadiq <sadiq@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair  is in line with '='
  2023-02-10  6:23 bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '=' Mohammed Sadiq
  2023-02-12  8:22 ` Yuan Fu
@ 2023-02-13  3:51 ` Yuan Fu
  1 sibling, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2023-02-13  3:51 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61398-done


Yuan Fu <casouri@gmail.com> writes:

> Mohammed Sadiq <sadiq@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

Ok, this should be fixed now.

Yuan





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-13  3:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10  6:23 bug#61398: 29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '=' Mohammed Sadiq
2023-02-12  8:22 ` Yuan Fu
2023-02-13  3:51 ` Yuan Fu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.