🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Jonas Smedegaard Sun, 11 Oct 2026 19:40
Bug#1100003: hx: syntax highlighting requires local build of grammar plugins
#542
Author: Jonas Smedegaard
Date: Sun, 11 Oct 2026 19:40
63 lines
5541 bytes
--===============3167445625369197512==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Quoting Junyong Liang (2026-10-11 18:51:11)
> Hi Jonas,
>=20
> I'm not sure if there's a mistake with my email. I haven't received any=20
> reply from other DDs yet, and there hasn't been any progress with the=20
> package on mentor either.
>=20
> I was wondering=E2=80=94do you have a maintenance solution that works for=
 you? I=20
> recently read up on the principles of treesitter again. Actually, the=20
> dynamic library we need consists of C files generated by the grammar.js=20
> file using treesitter-cli. If our vendor only provides a single js file=20
> instead of a complete repository, it would help avoid the size concerns=20
> you're worried about. We could integrate treesitter-cli into hx-grammar=20
> and generate the C files during building. This way, we wouldn't need to=20
> provide files that are not used in the grammar repository. Of course,=20
> this solution only significantly reduces the lines of code that require=20
> review; we might still need to review hundreds or even a thousand lines=20
> of js code across dozens of repositories.

If the massive amount of external "source" code really is, or can be,
autogenerated from much smaller JavaScript true sources, then indeed
that sounds maintainable to me.

Thanks for persisting!

 - Jonas

--=20
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
--===============3167445625369197512==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

-----BEGIN PGP SIGNATURE-----

iQIyBAABCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmrL5MkACgkQLHwxRsGg
ASGl3w/40SwOWddkjymqe9uuadjb/z9sft2+Y6ycAu/TXIGzBXY8hdWockJmAUF5
/mkf4zs02U076w0b5fjG/X+eyOIq4WEDvq7LKXU2GOAc7dCEHDrn3HKsmrCZwQfq
4DAM+7FbJlHnvpspon+SCD1mbX0qp/GHcXhhQfMCYjHNFgOGQYHSinuREtg4WeAR
5bxek/94kxTcwGlXN3TQznv0+f9r+qFmhPSIv0ixqPXj4hoh5p5ugnH1hkVi89tJ
DPOplKZI2CdjqxINUahyRyhPB7c7d9qSPUeKzix8L+FTB6+iQmFn+Wm40NLYwdvs
MLHcz55tcyW+Sqg8UtkJTHKe1Jpx5I+X94QpN9HvJcNrU255BoibKn3RD3O+htaO
3kSFShIPByhpBWqN9xWeTMywl4zyFEovDh0t2LN3HotjIfFW9dKvFWNLFDs6EF21
Y7JdpO0TjH7LUBep+ypP81prb3hC7RV+mnS44HHNuKbc9u72CcuIcDgV20HNYIJc
VrdeicKp2tehjULK7N8dYeho0Imbo4A07B9fo2Ri65IcLdVpl+uFDEkIeghzS8Vg
UzJ7iP2CqIPe6pI6NI+XZcJlmohJzE2jsCaI4e1AsZOZBSsMbOVgi12J8vrGWwAB
eycPrmk/EWF0VereHNh+8Vlj2zDwhlsduxzWG7gPJbRup6D1eQ==
=FJtC
-----END PGP SIGNATURE-----

--===============3167445625369197512==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads