diff --git a/docs/multi-language-injections-framing.md b/docs/multi-language-injections-framing.md new file mode 100644 index 0000000..bb0d353 --- /dev/null +++ b/docs/multi-language-injections-framing.md @@ -0,0 +1,354 @@ +# Multi-language injections — framing (side quest, highlight family) + +**Intent.** Teach the syntax engine that one buffer can hold more than +one language. Today pmacs parses a buffer with exactly one grammar and +runs exactly one `highlights.scm` over it ("first language wins"). This +adds tree-sitter *injection layers*: after the root parse, run the +grammar's `injections.scm` to find embedded regions (a markdown code +fence, an HTML `