aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Davis2022-06-30 22:46:34 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commitc5600c9c0154df1ed20eb0eb16dfaa8c09447a2f (patch)
treeadd05cb8e2e5e616b2f4d72b698fc1815e2def7b /runtime
parentc8dba2f4c699b50384802a0fb4e0dadf87ea1677 (diff)
markdown: limit raw block highlight to code fence content
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/markdown/highlights.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/queries/markdown/highlights.scm b/runtime/queries/markdown/highlights.scm
index aee568c8..096c2954 100644
--- a/runtime/queries/markdown/highlights.scm
+++ b/runtime/queries/markdown/highlights.scm
@@ -8,11 +8,9 @@
(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5)
(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6)
-(code_fence_content) @none
-
[
(indented_code_block)
- (fenced_code_block)
+ (code_fence_content)
] @markup.raw.block
(block_quote) @markup.quote
@@ -26,6 +24,8 @@
(link_destination) @markup.link.url
(link_label) @markup.link.label
+(info_string) @label
+
[
(link_text)
(image_description)
@@ -51,3 +51,4 @@
(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
(image ["[" "]" "(" ")"] @punctuation.bracket)
+(fenced_code_block_delimiter) @punctuation.bracket