Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement syntax highlighting #66

Open
certik opened this issue Mar 6, 2025 · 0 comments
Open

Implement syntax highlighting #66

certik opened this issue Mar 6, 2025 · 0 comments

Comments

@certik
Copy link
Contributor

certik commented Mar 6, 2025

There are 3 different ways to do this:

  • in the typescript vscode extension itself
  • in the LSP by writing a dedicated parser just for syntax highlighting
  • in the LSP using our existing parser

We'll start by using our existing parser, since it is the most versatile way: no code duplication, and because the LSP is so fast, this should be fast enough that the first approach is not needed, so we'll keep things simple. The first approach is typically used when the LSP is slow, so it gives you a fast approximate syntax highlighting, then accurate later. I think we can give the exact highlighting right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant