How to add multiple grammars from a single tree-sitter repository? #26418
Closed
coroa
started this conversation in
Extensions and Themes
Replies: 2 comments 1 reply
-
Hey, I had a look at a project that seems to do something similar (grouping grammars) a while ago: https://github.com/jeff-hykin/deno-tree-sitter. It might help you (or not), but that's a starting point I suppose. |
Beta Was this translation helpful? Give feedback.
1 reply
-
amazingly, this was solved in the same month in a new discussion: #9901. ie. grammars can be pulled in from sub-directories with exactly the syntax proposed above!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently trying to figure out how to publish multiple similar tree-sitter grammars in a single repository, just like it was done in https://github.com/tree-sitter-grammars/tree-sitter-csv/ , which contains three grammars for csv, psv and tsv in sub-directories.
How would one have to update the
extension.toml
from the default described in the docs to pull those inor maybe, something like:
(but unsure how zed would then figure out, which of the directories in the repo are actually grammars).
Is that possible?
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions