on master help sign in
markdown: limit raw block highlight to code fence content
c5600c9Michael Davis
languages.toml+1−1
@@ -855,7 +855,7 @@ indent = { tab-width = 2, unit = " " }
855
855
856[[grammar]]
856[[grammar]]
857name = "markdown"
857name = "markdown"
858−source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "ad8c32917a16dfbb387d1da567bf0c3fb6fffde2" }
858+source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "ab15701d8f3f68aeb74e30573b7d669a6ef2a7ed" }
859
859
860[[language]]
860[[language]]
861name = "dart"
861name = "dart"
runtime/queries/markdown/highlights.scm+4−3
@@ -8,11 +8,9 @@
8(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5)
8(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5)
9(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6)
9(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6)
10
10
11−(code_fence_content) @none
12−
13[
11[
14 (indented_code_block)
12 (indented_code_block)
15− (fenced_code_block)
13+ (code_fence_content)
16] @markup.raw.block
14] @markup.raw.block
17
15
18(block_quote) @markup.quote
16(block_quote) @markup.quote
@@ -26,6 +24,8 @@
26(link_destination) @markup.link.url
24(link_destination) @markup.link.url
27(link_label) @markup.link.label
25(link_label) @markup.link.label
28
26
27+(info_string) @label
28+
29[
29[
30 (link_text)
30 (link_text)
31 (image_description)
31 (image_description)
@@ -51,3 +51,4 @@
51
51
52(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
52(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
53(image ["[" "]" "(" ")"] @punctuation.bracket)
53(image ["[" "]" "(" ")"] @punctuation.bracket)
54+(fenced_code_block_delimiter) @punctuation.bracket