summaryrefslogtreecommitdiff
path: root/queries/markdown/injections.scm
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-10-01 21:38:38 +0200
committerKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-10-19 18:28:45 +0200
commitf7d92f663c07b9be35ceea0342c215ca396c48fb (patch)
tree4abaff961affb3c35443dd72423eb33fec2d502f /queries/markdown/injections.scm
parente9b6e2d311156fc71b355194553cc35948ca3b44 (diff)
feat(languagetree): implement language tree
Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
Diffstat (limited to 'queries/markdown/injections.scm')
-rw-r--r--queries/markdown/injections.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm
new file mode 100644
index 00000000..0522dee2
--- /dev/null
+++ b/queries/markdown/injections.scm
@@ -0,0 +1,6 @@
+(fenced_code_block
+ (info_string) @lang
+ (code_fence_content) @injection)
+
+((html_block) @injection
+ (#set! "lang" "html"))