-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Explore using tree sitter for syntax highlighting #210475
Comments
Some notes on incremental parsing:
@hediet FYI. |
Opened tree-sitter/tree-sitter#3341 for the above issue. |
After some discussion, we've decided to first understand the performance of using tree-sitter to parse files. #213565 contains that work. |
We also need new internal editor API to write a more optimal parse function, which @rebornix may help with. |
Progress in July:
|
* Colorization tests for tree sitter Part of #210475 * Fix tests * Actually fix tests * Fix line endings
* Colorization tests for tree sitter Part of #210475 * Fix tests * Actually fix tests * Fix line endings * Register preferTreeSitter setting
Updates (though I didn't get to work on this October):
For November, the main plan is performance. |
* Add an easy way to run performance tests for tree-sitter Part os #210475 * Compile build folder
That's along of junk |
Can we get an update on this? |
Is this going to affect also Markdown? Asking because this task #180246 was closed without a fix (referencing to the abandoned TextMate's library) and this work here seems to be the only light at the end of the tunnel for resolving this. @alexr00 Markdown wasn't part of your response here but there is a tree-sitter grammar for markdown existing, although it has some "interesting" comment about WASM, so I'm not sure if it will suite VS Code or not: https://github.com/tree-sitter-grammars/tree-sitter-markdown?tab=readme-ov-file#usage-with-wasm Either way, should there be an open ticket to track this Markdown highlighting bug? So it would appear in this list. |
Pulsar got around this by building a custom copy of |
I'm putting this as a side note, but I'm sure solving the custom copy of web-tree-sitter problem would help (and be of interest) to Zed since I believe one of their goals is to be available through the web, too. |
Opened #237316 for markdown to keep it on my radar for either finding a new textmate grammar or considering for tree-sitter (depending on the situation with wasm). |
Actually, just re-opened #180246. |
Goals of the explorations:
The text was updated successfully, but these errors were encountered: