emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-tree-sitter and Emacs


From: Stefan Monnier
Subject: Re: emacs-tree-sitter and Emacs
Date: Thu, 02 Apr 2020 15:48:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> outermost function or class that affects the displayed text.
> IOW, start from window-start, then go back until you find the top-level
> syntactic construct; then parse from there.

I'm looking forward to your proof-of-concept implementation of "go back
until you find the top-level syntactic construct".

In the mean time, I'll be happy to wait the 0.2s tree-sitter takes for the
initial full parse.


        Stefan


PS: AFAIK, "find the top-level syntactic construct" is a big part of what
CC-mode works so hard on.  It's *hard* to do if you want it to work
reliably (like users expect nowadays).





reply via email to

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