aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/markdown/highlights.scm19
-rw-r--r--queries/markdown/injections.scm6
2 files changed, 25 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
new file mode 100644
index 000000000..101526bf5
--- /dev/null
+++ b/queries/markdown/highlights.scm
@@ -0,0 +1,19 @@
+(atx_heading) @text.title
+
+[
+ (code_span)
+ (fenced_code_block)
+]@text.literal
+
+(code_fence_content) @none
+
+[
+ (link_text)
+ (image_description)
+] @text.strong
+
+[
+ (emphasis)
+ (strong_emphasis)
+] @text.emphasis
+(link_destination) @text.uri
diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm
new file mode 100644
index 000000000..0522dee2c
--- /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"))