3 ms·
This is great. Thanks for the link. I'm just starting to learn about tree-sitter but my understanding is that it can also handle nested syntax, for example cod
by snthpy 3y ago
This is great. Thanks for the link.
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 sg support this a well?
What I would like to do is use sg to update my project's code samples. Is that possible? What part of the docs should I look at for this?
- herrington_d 3y agoHi! This is Grit's release news so please allow me to only briefly answer your question. > nested syntax sg does not support it natively now and you need API to extract relevant text out. For update code, I recommend first read the quick start, pattern and rule essentials https://ast-grep.github.io/guide/quick-start.html https://ast-grep.github.io/guide/quick-start.html https://ast-grep.github.io/guide/pattern-syntax.html https://ast-grep.github.io/guide/pattern-syntax.html https://ast-grep.github.io/guide/rule-config.html https://ast-grep.github.io/guide/rule-config.html