Repository navigation
Replies: 1 comment
|
I might add tree-sitter support (they generate an AST), it's not much work honestly, I just didn't have the motivation to do it, mostly because they complicate the package distribution unless I use wasm builds but you lose around 50% parsing speed, so I don't like it. But tree sitter solve some problems and they are fast, but I still believe that simple pattern matching highlighting+ semantic highlighting from the LSP gives better results overall. The issue is that not many LSP provide semantic highlighting, but in my use case virtually all LSPs I frequently use do provide it so I always have great syntax highlighting. But in short, I can add it no problem if there's demand, with AI help I can have a decent v1 available in a few hours. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Do you plan on ever implementing languages/highlighting through ASTs in the
future? Maybe with extensibility through how it works now. The current
implementation is in many ways sufficient but also a bit suboptimal. but it
suffices fine and is easy to extend if the relevant information about languages
is available. But as everyone nowadays uses ASTs, I just wonder whether you
"play with the thought" of implementing that someday. Asking out of sheer
curiosity, I wouldn't want to force that because I am still fine enough with
what it is now.
All reactions