Re:Tree-sitter: an incremental parsing system for programmin...
by ACosmicDust on Monday February 22, 2021 @11:22AM
(#26226292)
Emacs does have a package to use tree-sitter [0]. I think emacs-lsp is aware of this highlighting backend and performs pretty well.
(semantic highlighting is pretty slow for C++ with font-lock, with tree-sitter it's a breeze :))
Re:Tree-sitter: an incremental parsing system for programmin...
by pdimitar on Wednesday February 24, 2021 @10:03AM
(#26250587)
Wait what? You mean to tell me that Emacs LSP already uses tree-sitter?
Re:Tree-sitter: an incremental parsing system for programmin...
by ducktective on Monday February 22, 2021 @11:18AM
(#26226242)
Yeah but I don't think LSP specs contain syntax-highlighting or semantic highlighting.
Re:Tree-sitter: an incremental parsing system for programmin...
by orra on Monday February 22, 2021 @11:30AM
(#26226390)
LSP supports semantic highlighting: https://microsoft.github.io/language-server-protocol/specifi...
Though AIUI the basic syntax highlighting is done by the editor (e.g. VSCode uses Textmate grammar support).
Re:Tree-sitter: an incremental parsing system for programmin...
by picardythird on Monday February 22, 2021 @11:20AM
(#26226267)
FYI there is tree-sitter.el for Emacs.
[0]: https://twitter.com/simonbs/status/1352697855845273600
[1]: https://twitter.com/simonbs/status/1362492842141171720?s=21