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

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

bug#74386: Tree-sitter javascript indentation


From: Dmitry Gutov
Subject: bug#74386: Tree-sitter javascript indentation
Date: Sun, 1 Dec 2024 15:11:36 +0200
User-agent: Mozilla Thunderbird

On 01/12/2024 07:23, Yuan Fu wrote:
For more experimenting, also check out 'M-x treesit-explore-mode'.

And here's how to immediately find out which indentation rule was used:

   (setq treesit--indent-verbose t)
Theo, please chime in.  Should Dmitry install his changes?
The standalone-parent anchor is designed specifically to solve the bug 
described here, and changing parent-bol to standalone-parent is very safe. So 
IMO we can merge this (either to emacs-30 or master).

Thanks for your answer.

What I was wondering, is whether we might need some user option(s) to switch back to parent-bol instead of standalone-parent for some constructs, and whether we should replace more uses of parent-bol with standaline-parent, and if so, which ones.

Also see the example of the indentation change with that patch (switching from one fairly popular indentation style to one slightly less popular - AFAIK).





reply via email to

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