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: Stefan Kangas
Subject: bug#66153: 30.0.50; treesit: Edge case in indentation with multiple languages
Date: Sat, 30 Sep 2023 16:25:26 -0700

Version: 30.1

Augustin Chéneau (BTuin) <btuin@mailo.com> writes:

> 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 point is located on the bracket, it will use
> language_A's rules.

It seems like this patch was installed on master, but the bug was left
open in the bug tracker.  I'm therefore closing it now.

Please remember to close bug reports when they are fixed.

commit 7447d3df94e49bef8577008d76a6b1f6a4013146
Author: Augustin Chéneau <btuin@mailo.com>
Commit: Yuan Fu <casouri@gmail.com>
Date:   Wed Sep 20 12:23:22 2023 +0200

    Fix tree-sitter indentation conflict with multiple languages

    * lisp/treesit.el (treesit--indent-1): Use bol instead of point.

    Copyright-paperwork-exempt: yes





reply via email to

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