[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61893: 29.0.60; Indentation in c-ts-mode broken again
From: |
Eli Zaretskii |
Subject: |
bug#61893: 29.0.60; Indentation in c-ts-mode broken again |
Date: |
Mon, 06 Mar 2023 14:58:46 +0200 |
> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 5 Mar 2023 15:26:45 -0800
> Cc: Theodor Thornhill <theo@thornhill.no>,
> Daniel Martín <mardani29@yahoo.es>,
> 61893@debbugs.gnu.org
>
> > Line 3381 of dispnew.c: type "C-e RET" -- point goes to the correct
> > column, but line 3381 is reindented incorrectly.
>
> This is due to it aligning to the previous sibling, aka the comment. Do we
> want to skip comments for the “align to the prev sibling” rule?
No, this behavior is okay.
> > Lines 34529 and 34530 of xdisp.c: "C-e RET" produces incorrect column
> > of point and reindents line 34530.
>
> The preproc directive messed the parse tree, and tree-sitter can’t tell that
> it’s an else statement, so it can’t be easily fixed sadly.
I see.
Thanks for the other fixes. I'm closing this bug.
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, (continued)
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Eli Zaretskii, 2023/03/02
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Yuan Fu, 2023/03/02
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Theodor Thornhill, 2023/03/03
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Yuan Fu, 2023/03/03
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Theodor Thornhill, 2023/03/04
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Yuan Fu, 2023/03/04
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Eli Zaretskii, 2023/03/05
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Yuan Fu, 2023/03/05
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Theodor Thornhill, 2023/03/06
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again, Eli Zaretskii, 2023/03/06
- bug#61893: 29.0.60; Indentation in c-ts-mode broken again,
Eli Zaretskii <=