aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/markdown/injections.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/markdown/injections.scm')
-rw-r--r--runtime/queries/markdown/injections.scm22
1 files changed, 14 insertions, 8 deletions
diff --git a/runtime/queries/markdown/injections.scm b/runtime/queries/markdown/injections.scm
index 10dcab0b..9940e961 100644
--- a/runtime/queries/markdown/injections.scm
+++ b/runtime/queries/markdown/injections.scm
@@ -1,9 +1,15 @@
+; From nvim-treesitter/nvim-treesitter
+
(fenced_code_block
- (info_string) @injection.language
- (code_fence_content) @injection.content
- (#set! injection.include-children))
-
-((html_block) @injection.content
- (#set! injection.language "html"))
-((html_tag) @injection.content
- (#set! injection.language "html"))
+ (info_string
+ (language) @injection.language)
+ (code_fence_content) @injection.content (#set! injection.include-unnamed-children))
+
+((html_block) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
+
+([
+ (minus_metadata)
+ (plus_metadata)
+] @injection.content (#set! injection.language "yaml") (#set! injection.include-unnamed-children))
+
+((inline) @injection.content (#set! injection.language "markdown.inline") (#set! injection.include-unnamed-children))