emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree Sitter (was Re: cc-mode fontification feels random)


From: Perry E. Metzger
Subject: Re: Tree Sitter (was Re: cc-mode fontification feels random)
Date: Tue, 20 Jul 2021 10:53:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.0

On 7/19/21 19:49, Stephen Leake wrote:
"Perry E. Metzger" <perry@piermont.com> writes:

Apologies for not having been present for, er, the extensive previous
discussion on Tree Sitter. I discovered it looking at the archives.
Ok.

I still believe that it would be a great thing to integrate into the
base of Emacs. The algorithms it employs are excellent, it's extremely
fast, and it handles the issues of real editors (like dealing with
partial code fragments and incrementally changing the parse on every
keystroke) very efficiently.
+1.

I'm working on adding incremental parse to wisi (and have been for
almost a year now ...). I believe wisi has stronger error recovery than
tree-sitter, which allows it to support indentation.


Tree sitter can reparse an entire file in a few milliseconds. This is almost impossible to achieve in elisp I suspect. Because of this, it can reparse on every keystroke, which is quite an astonishing thing.


Perry




reply via email to

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