CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

✨ Injected Languages

Open lukepistrol opened this issue 3 years ago • 1 comments

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

lukepistrol avatar Jun 02 '22 14:06 lukepistrol

Good point. I can also see this being useful when writing regex or jsx in javascript.

austincondiff avatar Jun 17 '22 18:06 austincondiff