[NTG-context] Re: Anyone working on a treesitter grammar?

2024-07-05 Thread Jethro Djan
Hello, All tree-sitter projects look like this I think. For Neovim, all you have to do is clone the project to a place in your path and generate a parser using the command 'tree-sitter generate'. Then you open Neovim to install it with 'TSInstall (the name of the grammar without '-tree-sitter' in

[NTG-context] Re: Anyone working on a treesitter grammar?

2024-07-05 Thread 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. If I can recall, one of the first problems I ran into concerned how ConTeXt environments work (among other things I cannot recall). In LaTeX, you have something

[NTG-context] Re: Anyone working on a treesitter grammar?

2024-07-05 Thread Henning Hraban Ramm
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 f

[NTG-context] ConTeXt has stopped working

2024-07-05 Thread Jethro Djan
Dear list, Anytime I try make a document I get: token call, execute: ...ext/tex/texmf-context/tex/context/base/mkxl/toks-aux.lmt:291: attempt to call a nil value (field 'getmathvariantpresets') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/toks-aux.lmt:291: in local 'cod

[NTG-context] Re: ConTeXt has stopped working

2024-07-05 Thread Hans Hagen
On 7/5/2024 7:51 PM, Jethro Djan wrote: Dear list, Anytime I try make a document I get: token call, execute: ...ext/tex/texmf-context/tex/context/base/mkxl/toks-aux.lmt:291: attempt to call a nil value (field 'getmathvariantpresets') stack traceback: mismatch between tex/lua and binary? --

[NTG-context] Re: ConTeXt has stopped working

2024-07-05 Thread Jethro Djan
Sorry for the noise. Working after a fresh install. Probably something to do with the update script. Jethro On Fri, 5 Jul 2024 at 6:31 PM, Hans Hagen wrote: > On 7/5/2024 7:51 PM, Jethro Djan wrote: > > Dear list, > > > > Anytime I try make a document I get: > > > > token call, execute: > > ...

[NTG-context] processor for index sub-entry?

2024-07-05 Thread Henning Hraban Ramm
Hi, is it possible to apply a processor to an index sub-entry? \index{Modules+\type{filter}} looks good, but "filter" is sorted under "type". \defineprocessor[type][style=mono] \index{Modules+type->filter} results in a "Modules / type->filter" entry. \index[Modules+filter]{Modules+\type{filter}