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

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

bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken


From: Yuan Fu
Subject: bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken
Date: Mon, 6 Feb 2023 18:25:19 -0800

Mohammed Sadiq <sadiq@sadiqpk.org> writes:

> The following code indentation is broken:
>
> int
> main(void)
> {
>   if (a)
>     {
>       do_something();
>     }
>   else if (b)
>     {
>       do_something_else();
>     }
> }
>
> Where do_something_else(); statement is indented more than it should be.
> afair this seems to a recent regression.

This is the indentation I get:

int
main(void)
{
  if (a)
    {
      do_something();
    }
  else if (b)
    {
          do_something_else();
    }
}

Is that not what it should be?

Yuan





reply via email to

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