aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-15 09:03:02 +0000
committerBlaž Hrastnik2021-12-15 09:03:02 +0000
commitac4b72fcc88b1930b974196c75fde7d55e21d71f (patch)
treeafbcf2b13734dadd6502eeb1c9113a12fb062683 /runtime
parent40969ad4528bbb774e2b95dce0749b1dd3734ebf (diff)
Add injections query for markdown
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/markdown/injections.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/queries/markdown/injections.scm b/runtime/queries/markdown/injections.scm
index e69de29b..ff3c5fe6 100644
--- a/runtime/queries/markdown/injections.scm
+++ b/runtime/queries/markdown/injections.scm
@@ -0,0 +1,8 @@
+(fenced_code_block
+ (info_string) @injection.language
+ (code_fence_content) @injection.content)
+
+((html_block) @injection.content
+ (#set! injection.language "html"))
+((html_tag) @injection.content
+ (#set! injection.language "html"))