3 ms·
This looks great! Thank you for building it. I'm looking forward to learning to use it. I'm just starting to learn about tree-sitter but my understanding is th
by snthpy 3y ago
This looks great! Thank you for building it. I'm looking forward to learning to use it.
I'm just starting to learn about tree-sitter but my understanding is that it can also handle nested syntax, for example code in documentation html pages. Does grit support this a well?
What I would like to do is use grit to update my project's code samples with new releases or syntax changes. Is that possible? What part of the docs should I look at for this?
- morgante 3y agoYes, Grit does support embedded languages. Right now we support Vue syntax: https://github.com/getgrit/gritql/blob/4ff989e8d665cc9ffa2cbb8a9829e8c7e1072f6d/crates/language/src/javascript.rs#L173-L184 https://github.com/getgrit/gritql/blob/4ff989e8d665cc9ffa2cb... We don't have support for HTML yet, but if you open an issue we're happy to explore it.