From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Anyone working on a treesitter grammar?
Date: Fri, 5 Jul 2024 13:36:19 +0200 [thread overview]
Message-ID: <5c767782-0663-4cfa-a115-25c50dded435@fiee.net> (raw)
In-Reply-To: <CAHgnkf-RD_vjuS9wHV6hDMTJHVA8g9M2TUMgW7WD8ozzqamdgQ@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-07-05 11:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 19:22 [NTG-context] " juh+ntg-context--- via ntg-context
2024-07-04 19:39 ` [NTG-context] " Henning Hraban Ramm
2024-07-04 20:31 ` juh+ntg-context--- via ntg-context
2024-07-04 21:01 ` Henning Hraban Ramm
2024-07-05 10:07 ` Jethro Djan
2024-07-05 10:33 ` Jethro Djan
2024-07-05 11:36 ` Henning Hraban Ramm [this message]
2024-07-20 16:04 ` Paul Mazaitis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c767782-0663-4cfa-a115-25c50dded435@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).