🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #542

Bug#1100003: hx: syntax highlighting requires local build of grammar plugins

#542
From: 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==--
Technical Details
Message-ID: <NN7yN-4Wcf-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NhcGt-4Wk4-15@gated-at.bofh.it> <NhcGt-4Wk4-23@gated-at.bofh.it> <NhcGt-4Wk4-25@gated-at.bofh.it> <NhcGt-4Wk4-13@gated-at.bofh.it> <KoFTY-4YiL-11@gated-at.bofh.it> <NutTb-ch7A-9@gated-at.bofh.it> <NutTb-ch7A-7@gated-at.bofh.it> <NN7yN-4Wcf-5@gated-at.bofh.it> <NN7yN-4Wcf-7@gated-at.bofh.it> <NN7yN-4Wcf-9@gated-at.bofh.it> <KoFTY-4YiL-11@gated-at.bofh.it> <NN7yN-4Wcf-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Jonas Smedegaard <jonas@jones.dk>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1100003: hx: syntax highlighting requires local build of grammar plugins
Date: Sun, 11 Oct 2026 21:40:01 +0200
Message-ID: <NN7yN-4Wcf-3@gated-at.bofh.it>
References: <NhcGt-4Wk4-15@gated-at.bofh.it> <NhcGt-4Wk4-23@gated-at.bofh.it> <NhcGt-4Wk4-25@gated-at.bofh.it> <NhcGt-4Wk4-13@gated-at.bofh.it> <KoFTY-4YiL-11@gated-at.bofh.it> <NutTb-ch7A-9@gated-at.bofh.it> <NutTb-ch7A-7@gated-at.bofh.it> <NN7yN-4Wcf-5@gated-at.bofh.it> <NN7yN-4Wcf-7@gated-at.bofh.it> <NN7yN-4Wcf-9@gated-at.bofh.it> <KoFTY-4YiL-11@gated-at.bofh.it> <NN7yN-4Wcf-9@gated-at.bofh.it>
X-Original-To: Junyong Liang <liangjunyong06@gmail.com>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Oct 11 19:37:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Jonas Smedegaard <jonas@jones.dk>, 1100003@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dr@jones.dk
X-Debian-Pr-Message: followup 1100003
X-Debian-Pr-Package: hx
X-Debian-Pr-Source: hx
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============3167445625369197512=="
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: alot/0.12
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996311
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1100003@bugs.debian.org
X-Original-Date: Sun, 11 Oct 2026 21:34:35 +0200
X-Original-Message-ID: <179174727589.860370.12323926593634999199@cairon.jones.dk>
X-Original-References: <CAJHaL8mzyfuSSghjo8S-AX1pA=52H1UQXYuevLX-xX3ytCC=2w@mail.gmail.com> <CAJHaL8kmbO1n+kTM2jW0s-CMeXr=na0VUwSVwbH8haZctd3Ujw@mail.gmail.com> <e9baf6a2-11f6-4048-af2f-ff9a73c1e07f@gmail.com> <178414009003.18399.18214464914328798667@cairon.jones.dk> <174159192189.25106.3381112567390093391.reportbug@fiona> <3fac8e58-d3ca-4236-ac86-6fdf2414af40@gmail.com> <178730464660.2845312.17111250761506060529@cairon.jones.dk> <e908126e-0a64-40ae-83ca-ded3988b71fd@gmail.com> <178750229432.951006.12017272090130514517@cairon.jones.dk> <1210816b-6cec-488a-8773-c86de56b8c4f@gmail.com> <174159192189.25106.3381112567390093391.reportbug@fiona> <1210816b-6cec-488a-8773-c86de56b8c4f@gmail.com>