Skip to content

[new release] tm-grammars and co (1.0.0)#29474

Open
davesnx wants to merge 1 commit intoocaml:masterfrom
davesnx:release-tm-grammars-1.0.0
Open

[new release] tm-grammars and co (1.0.0)#29474
davesnx wants to merge 1 commit intoocaml:masterfrom
davesnx:release-tm-grammars-1.0.0

Conversation

@davesnx
Copy link
Contributor

@davesnx davesnx commented Feb 27, 2026

All bundled TextMate grammars

CHANGES:
  • Published OCaml packages that expose TextMate grammars as JSON strings.
  • Added individual tm-grammar-<language> packages for the supported language IDs.
  • Added tm-grammars, a bundled package with direct accessors for all included grammars.
  • Added generated package setup driven by sources.json.

@davesnx davesnx changed the title [new release] tm-grammar-c, tm-grammar-cpp, tm-grammar-cram, tm-grammar-css, tm-grammar-diff, tm-grammar-dockerfile, tm-grammar-dune, tm-grammar-go, tm-grammar-graphql, tm-grammar-html, tm-grammar-java, tm-grammar-javascript, tm-grammar-json, tm-grammar-jsonc, tm-grammar-makefile, tm-grammar-markdown, tm-grammar-menhir, tm-grammar-mlx, tm-grammar-ocaml, tm-grammar-ocamllex, tm-grammar-opam, tm-grammar-python, tm-grammar-reason, tm-grammar-ruby, tm-grammar-rust, tm-grammar-shellscript, tm-grammar-sql, tm-grammar-toml, tm-grammar-tsx, tm-grammar-typescript, tm-grammar-yaml and tm-grammars (1.0.0) [new release] tm-grammars and co (1.0.0) Feb 27, 2026
@davesnx
Copy link
Contributor Author

davesnx commented Feb 27, 2026

Updated the title to not break the github ui T_T

@davesnx davesnx force-pushed the release-tm-grammars-1.0.0 branch from 5e15b79 to 528612e Compare February 27, 2026 13:57
@avsm
Copy link
Member

avsm commented Feb 28, 2026

This is a useful package to have, but seems like a lot of unnecessary opam packages where one would do. Have you considered making this a single tm-grammars package, with findlib submodules for each language (tm-grammars.ocaml). That would let you publish it simply, put less pressure on the opam solver, let you have one maintenance-intent, and still keep the dependency cone simple for downstream users.

@avsm avsm added the question label Feb 28, 2026
CHANGES:

- Published OCaml package that exposes TextMate grammars as JSON strings.
- Each language is a findlib sublibrary (e.g. `tm-grammars.ocaml`, `tm-grammars.tsx`).
- Downstream users depend on `tm-grammars` and add only the sublibraries they need to `(libraries ...)`.
- Generated package setup driven by `sources.json`.
@davesnx davesnx force-pushed the release-tm-grammars-1.0.0 branch from 528612e to 71a64b9 Compare February 28, 2026 18:58
@davesnx
Copy link
Contributor Author

davesnx commented Feb 28, 2026

That's a much better package design, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants