Open TristanCacqueray opened 2 years ago
Some relevant links:
lsp-types
package does in fact support semantic tokens: https://github.com/haskell/lsp/blob/master/lsp-types/src/Language/LSP/Protocol/Types/SemanticTokens.hsRelevant in comparison to #323 is that although the LSP semantic token specification/API seems to optionally support incremental updates aka deltas, our parser does not support incremental parsing. There is certainly work in Haskell on incremental parsing, e.g. https://hackage.haskell.org/package/incremental-parser , https://publications.lib.chalmers.se/records/fulltext/local_94979.pdf , and even megaparsec
itself seems to have some kind of support for incremental parsing.
Is your feature request related to a problem? Please describe. See #323
Describe the solution you'd like The LSP should support SemanticTokensClientCapabilities to provide syntax highlighting. Then the emacs regex and textmate should be removed.