Explainer: Tree-sitter vs. LSP
Summary
The article explains the practical differences between Tree-sitter, a fast, error-tolerant parser generator used for accurate syntax highlighting, and a language server, which provides semantically aware editor features via the Language Server Protocol. It notes that language servers can be used for highlighting but may be slower and more complex, and discusses the potential impact of LLMs on developer tooling.