You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
arbrauns
changed the title
Dynamic sublanguages
Dynamic sublanguages (injections)
May 17, 2024
Some languages support arbitrary sublanguages inside tagged code blocks, for example some python code inside this Markdown text:
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.
The text was updated successfully, but these errors were encountered: