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

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

bug#66153: 30.0.50; treesit: Edge case in indentation with multiple lang


From: Dmitry Gutov
Subject: bug#66153: 30.0.50; treesit: Edge case in indentation with multiple languages
Date: Fri, 22 Sep 2023 15:18:00 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

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).





reply via email to

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