Skip to content

Conversation

@fwcd
Copy link
Owner

@fwcd fwcd commented Sep 4, 2021

Fixes #39

Provide semantic highlighting in Curry documents.

To do:

  • Add semantic tokens request for full documents
  • Implement HasSemanticTokens for syntax tree nodes containing Idents
  • Implement HasSemanticTokens for syntax tree nodes containing QualIdents (see HasQualIdentifiers for examples)
  • Fix responsiveness issues: Currently, the AST in the index store may become out-of-sync with what the user types. Fully responsive semantic tokens may require us to implement something similar to Provide fully context-aware completions #16 where a (possibly broken) AST is parsed in real-time.

Future work:

  • Implement delta semantic tokens (investigate how much the lsp abstracts away for us there)

@fwcd fwcd added enhancement New feature or request lsp feature A new (not yet implemented) Language Server Protocol feature labels Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lsp feature A new (not yet implemented) Language Server Protocol feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement semantic highlighting

2 participants