-
Notifications
You must be signed in to change notification settings - Fork 715
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
Should Kakoune have a parser? #50
Comments
Yi (repository) has strong, incremental parsers for highlighting. |
Supporting grammars is seducing, however having a performant, data driven, incremental, tolerant (as most of the time you are working on an invalid program) parser seems more like a research project. It is not a goal at the moment for Kakoune. |
I was expecting this answer. The reason why I open this issue is because of |
Have you look at Yi? It is an interesting project, like Kakoune. It still needs more love. |
I did, parsers are coded in Haskell and compiled in, so not really data driven. |
I know this is an ancient issue. But recently I found this project: http://tree-sitter.github.io/tree-sitter/ (created by the Github organisation). It seems to address exactly the issues raised in #50 (comment) by @mawww. From the website:
It has been around for a while now speaking to it's maturity. |
Related ongoing PR about tree-sitter: #3160 |
That's pretty spectacular. I hadn't even thought about selections! Syntax highlighting was my annoyance. It's just too damn hard to write regexes (think code in string interpolations, ugh). |
Use case:
Example:
The text was updated successfully, but these errors were encountered: