Setting up tree-sitter in Emacs
Not available yet. Emacs 29+ can load the grammar itself, but highlighting also needs a
macaulay2-ts-modethat maps the grammar’s captures to faces, and nobody has written one.
Until then, Macaulay2’s own M2-mode handles highlighting, and the
language server adds semantic highlighting on top.
If you’d like to write the major mode, the grammar’s queries/highlights.scm is the place to
start; contributions are very welcome.