Am 05.07.24 um 12:33 schrieb Jethro Djan:
Hi,
I tried to write one some time ago but it seems my knowledge of ConTeXt
was insufficient. I gave up. I also think it would be nice.
Well, obviously, Paul managed to do it:
https://github.com/pmazaitis/tree-sitter-context
Maybe we could benefit from pre-converting the source file to an
XML-like tree before applying the grammar? At which point you
are venturing into LSP territory...
You know about the XML interface files?
See texmf-context/tex/context/interface/mkiv/
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________