CodeEditSourceEditor
CodeEditSourceEditor copied to clipboard
✨ Injected Languages
Injected languages are important for languages like HTML which might embed CSS or JavaScript code blocks.
Some grammars that support injections have an additional injections.scm file in their queries folder.
Resources
- https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection
Good point. I can also see this being useful when writing regex or jsx in javascript.