-
Notifications
You must be signed in to change notification settings - Fork 47
LSP Semantic Token Provider + syntax highlighting #40
Copy link
Copy link
Open
Labels
lspLanguage Server Protocol or other VSCode issuesLanguage Server Protocol or other VSCode issuessyntax highlighting
Description
Trying to merge the TypeScript TextMate grammar and an updated CoffeeScript grammar seems like it would be an unspeakable nightmare. So it would be nice if the Civet parser / LSP could provide semantic tokens.
Essentially tokens that have {$loc} would be source tokens styled from the nearest ancestor that has some sort of {sematicToken} property. It might require passing a flag into the parser and skipping normal AST processing instead constructing a stream of semantic tokens.
https://code.visualstudio.com/api/references/vscode-api#DocumentSemanticTokensProvider (looks like it is very similar to how source maps work)
Reactions are currently unavailable
Metadata
Metadata
Labels
lspLanguage Server Protocol or other VSCode issuesLanguage Server Protocol or other VSCode issuessyntax highlighting