[Top][All Lists]

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

Re: Using incremental parsing in Emacs

From: Alan Third
Subject: Re: Using incremental parsing in Emacs
Date: Sun, 5 Jan 2020 14:50:02 +0000

On Sat, Jan 04, 2020 at 02:46:14PM +0000, arthur miller wrote:
> There is a very good presentation of tree-sitter on YT by its author:
> https://www.youtube.com/watch?v=Jes3bD6P0To
> Looks much better then what I got a picture by just reading on the
> website:

I watched this video and it looks to me like tree sitter is trying to
solve a fundamentally different problem than LSP servers.

Most of the conversation in this thread seems to make the assumption
that tree sitter and LSP are mutually exclusive, which is clearly not

Tree sitter provides a fast and accurate parse tree to the editor
which it can then use for syntax highlighting, moving by syntax
element, code folding, expand region, etc.

LSP does not provide that and possibly never will:


Tree sitter does not provide error checking (although it does some
basic syntax checking simply through being a parser), language aware
refactoring, completion, etc. Things that LSP DOES provide.

One of the things that interested me the most in that presentation was
the discussion of syntax highlighting on very long lines. Perhaps it
couldn’t help Emacs, but it certainly made me think.
Alan Third

reply via email to

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