#543

jq language support: the only published grammar is GPL-3.0-or-later — OK to ship, and in which feature set?

Openalycdaopened 23d ago

I'd like to add jq (.jq) support: each def becomes a function entity, and edges come from the existing word scan, plus a strip strategy so jq's // alternative operator isn't treated as a comment.

The only grammar on crates.io is tree-sitter-jq 1.0.2 (nverno), and it is GPL-3.0-or-later. sem-core is MIT OR Apache-2.0, and as far as I can tell every grammar it ships today is MIT, Apache or CC0. Since grammar-all is a default feature, including it there would put a GPL dependency into the published crate and the Homebrew binary by default.

Which would you prefer?

  1. Include lang-jq in grammar-all
  2. Ship lang-jq as an opt-in feature only, outside grammar-all
  3. Don't ship it. I'd then ask the grammar author about an MIT/Apache dual license.

The other jq grammar (flurie/tree-sitter-jq) isn't usable here: it targets tree-sitter 0.20, isn't published, and its license metadata contradicts itself.

Activity

0

No activity yet.