difftastic
difftastic copied to clipboard
Dynamic sublanguages (injections)
Some languages support arbitrary sublanguages inside tagged code blocks, for example some python code inside this Markdown text:
print("Hello world!")
It would be great if difft supported such tags and used the correct sublanguage parser for the code blocks. My specific usecase is Typst, which has the same code block syntax as Markdown but also a lot more features that make a tree-sitter parser very useful.
There seems to be a (semi-?)standard way of specifying these sublanguage blocks, injection queries.