[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74386: Tree-sitter javascript indentation
From: |
Yuan Fu |
Subject: |
bug#74386: Tree-sitter javascript indentation |
Date: |
Sat, 30 Nov 2024 21:23:22 -0800 |
> On Nov 30, 2024, at 2:01 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> Cc: 74386@debbugs.gnu.org, Theodor Thornhill <theo@thornhill.no>
>> Date: Mon, 18 Nov 2024 17:29:18 +0200
>> From: Dmitry Gutov <dmitry@gutov.dev>
>>
>> On 18/11/2024 10:35, Marius Kjeldahl wrote:
>>> Can confirm your patch solves both the variants I showed. This will
>>> also help me to dig into and understand more of what is going on, and
>>> allows me to experiment more with my preferences (and tree-sitter in
>>> general). So thank you very much.
>>
>> Great!
>>
>> 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).
Yuan
- bug#74386: Tree-sitter javascript indentation,
Yuan Fu <=
- bug#74386: Tree-sitter javascript indentation, Dmitry Gutov, 2024/12/01
- bug#74386: Tree-sitter javascript indentation, Yuan Fu, 2024/12/01
- bug#74386: Tree-sitter javascript indentation, Dmitry Gutov, 2024/12/01
- bug#74386: Tree-sitter javascript indentation, Yuan Fu, 2024/12/01
- bug#74386: Tree-sitter javascript indentation, Yuan Fu, 2024/12/11
- bug#74386: Tree-sitter javascript indentation, Dmitry Gutov, 2024/12/11
- bug#74386: Tree-sitter javascript indentation, Yuan Fu, 2024/12/12
- bug#74386: Tree-sitter javascript indentation, Dmitry Gutov, 2024/12/12
- bug#74386: Tree-sitter javascript indentation, Yuan Fu, 2024/12/13