On 7/7/22 5:30 AM, Bram Moolenaar wrote:
Dominique wrote:
Bram Moolenaar wrote:
[...]
Other than that, I don't see support of Tree-Sitter, which could be
useful for things like:
- syntax highlighting
- folding
- text objects defined by syntax (to e.g. select or move by
function/class/string/statement...)
- and probably other things (e.g. being able to show syntax info)
There was a discussion about what engine to use for parsing, and
tree-sitter was considered old and difficult to use. Let's leave out
the name and just say "fast syntax parser".
When I read one long vim thread about additional parser system. I came
away with the impression that it was TextMate that was old and
difficult, and TreeSitter that was more modern(of course, could be
wrong); in particular it is actually a language parser rather than regex
based. I bring this up not to start a flame war in this thread, but to
mention that accuracy is another dimension, not just speed.
It might be heresy, but it would be cool if a separate thread could
dynamically calculate syntax/folding/... info; it is at least
conceivable if the parsing system is independent from vim, doesn't use
vim functions.
-ernie
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/bbd1e2ea-3954-40c0-aace-6ca2e0db2033%40raelity.com.