tree-sitter cli support for multi-language documents? #4528
Unanswered
lollipopman
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Yes, this works by defining so-called "injections". You can write queries which specify which nodes of your language embed contents to be parsed in other languages. See https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#language-injection |
Beta Was this translation helpful? Give feedback.
2 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.
-
Does the tree-sitter cli support parsing multi-language documents, e.g. an erb, ruby inside of a templating language?
Beta Was this translation helpful? Give feedback.
All reactions