Microsoft has been doing this since 1990's and they ended up with "language server protocol". Maybe Emacs core could implement some kind of support for implementing lsp:s or implement some better support to interchange data with existing lsp:s.
Hi Stefan,3- How does tree-sitter compare with the LSP-route (via eglot-mode
or lsp-mode)?lsp protocol is not going to support full-featured highlighting but only semanticbecause it won't be fast enough.Related: https://github.com/microsoft/vscode/issues/77140 andThanks,Ivan