Writing an extension with tree-sitter grammar in a subdirectory #9901
-
I was hoping to add support to Zed for a language that I help develop. I'm trying to follow the instructions: https://github.com/zed-industries/extensions/blob/main/AUTHORING_EXTENSIONS.md We already use a tree-sitter grammar in the project, so it seemed a great fit. However, the tree-sitter grammar/package is located in a larger mono-repo, and I'm not sure how to make this work. In this case the repository is https://github.com/shackle-rs/shackle, but the package/grammar is located in This means that the following [grammars.minizinc]
repository = "https://github.com/shackle-rs/schackle"
commit = "a4b45135832dadb5ae996ef3efc0a5f4d03d16ee" I would have hoped that there is an additional |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is supported by the [grammars.minizinc]
repository = "https://github.com/shackle-rs/schackle"
commit = "a4b45135832dadb5ae996ef3efc0a5f4d03d16ee"
path = "parsers/tree-sitter-minizinc" It was added in #9965, so I don't think it's made its way to a released version yet for use with the "Install Dev Extension" functionality (although it will be included in today's Preview release). |
Beta Was this translation helpful? Give feedback.
This is supported by the
path
field:It was added in #9965, so I don't think it's made its way to a released version yet for use with the "Install Dev Extension" functionality (although it will be included in today's Preview release).