Subject: Re: bug#66153: 30.0.50; treesit: Edge case in indentation with multiple languages

From: Dmitry Gutov <[email-masked]>
Date: Fri, 22 Sep 2023 15:18:00 +0300

On 22/09/2023 14:27, Augustin Chéneau (BTuin) wrote:
> 
> There is an edge case in treesit with multiple languages
> indentation. Here is a simple example:
> 
> // language_A
>      {
>         // language_B
>      }
> // language_A
> 
> 
> Here, brackets are managed by language_A, but everything inside is
> managed by language_B.  Meaning that if the pointer is at the beginning
> of the third line (with the closing bracket), it will use language_B's
> indent rules.  But if the

The patch looks reasonable to me (we do something similar in mmm-mode).