#543
jq language support: the only published grammar is GPL-3.0-or-later — OK to ship, and in which feature set?
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?
- Include
lang-jqingrammar-all - Ship
lang-jqas an opt-in feature only, outsidegrammar-all - 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
0No activity yet.