-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Injected languages are important for languages like HTML which might embed CSS or JavaScript code blocks.
Example Use Cases
HTMLimplementsCSS,JavaScriptJavaScriptimplementsregex,jsdoc,HTML/React
Injections.scm
Some grammars that support injections have an additional injections.scm file in their queries folder.
An example is tree-sitter-html:
((script_element
(raw_text) @injection.content)
(#set! injection.language "javascript"))
((style_element
(raw_text) @injection.content)
(#set! injection.language "css"))
We need to figure out how to parse and load the associated injected languages in addition to the base language itself.
Resources
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Type
Projects
Status
🏁 Complete