all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right
@ 2023-01-17  9:07 Mohammed Sadiq
  2023-01-19 22:47 ` Yuan Fu
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Sadiq @ 2023-01-17  9:07 UTC (permalink / raw)
  To: 60873

The following code is indented wrong:

int
main (int   argc,
       char *argv[])
{
   {
       int i = 0;
     }
}

For which, the expected indentation is:

int
main (int   argc,
       char *argv[])
{
   {
     int i = 0;
   }
}


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





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

* bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not  indented right
  2023-01-17  9:07 bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right Mohammed Sadiq
@ 2023-01-19 22:47 ` Yuan Fu
  0 siblings, 0 replies; 2+ messages in thread
From: Yuan Fu @ 2023-01-19 22:47 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 60873-done


Mohammed Sadiq <sadiq@sadiqpk.org> writes:

> The following code is indented wrong:
>
> int
> main (int   argc,
>       char *argv[])
> {
>   {
>       int i = 0;
>     }
> }
>
> For which, the expected indentation is:
>
> int
> main (int   argc,
>       char *argv[])
> {
>   {
>     int i = 0;
>   }
> }
>

Thanks! I’ve fixed it and added a test.

Yuan





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

end of thread, other threads:[~2023-01-19 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17  9:07 bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right Mohammed Sadiq
2023-01-19 22:47 ` 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.