This has been enabled in vscode, and I see emacs 30 and beyond support Multiple Languages.
On the face of it, it seems like it just needs a treesit-range-settings entry and an implementation of treesit-language-at-point-function that detects the context from a wild attribute, with a name atom of doc.
