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

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

bug#62333: 30.0.50; Issue with tree-sitter syntax tree during certain ch


From: Dmitry Gutov
Subject: bug#62333: 30.0.50; Issue with tree-sitter syntax tree during certain changes
Date: Mon, 27 Mar 2023 04:29:12 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 27/03/2023 01:52, Yuan Fu wrote:
If we can pull it off, a user only need to specify what is a pair and how to 
find the matching pair according to the language grammar, and the rest is 
automatic (a tree-sitter function for show-paren-data-function and 
blink-matching-paren).

Sounds good. Indeed, for this feature a registry of opener-closers should suffice.

Another command that could use it, is an implementation of backward-up-list. Somehow the default up-list manages to use SMIE's forward-sexp-function (and backward...) definitions automatically, but not tree-sitter's. I've been told it's expected for now, so I think opener-closers are the missing piece (either to enhance treesit-forward-sexp/treesit-backward-sexp to resemble the originals more closely, or to implement treesit-backward-up).





reply via email to

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