markdown: limit raw block highlight to code fence content
commitc5600c9c0154df1ed20eb0eb16dfaa8c09447a2f
authorMichael Davis <mcarsondavis@gmail.com>
dateThu 30 Jun 2022, 17:46 (4 years ago)
parentc8dba2f
languages.toml+1−1
@@ -855,7 +855,7 @@ indent = { tab-width = 2, unit = " " }
855855
856856[[grammar]]
857857name = "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" }
859859
860860[[language]]
861861name = "dart"
runtime/queries/markdown/highlights.scm+4−3
@@ -8,11 +8,9 @@
88(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5)
99(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6)
1010
11−(code_fence_content) @none
12−
1311[
1412 (indented_code_block)
15− (fenced_code_block)
13+ (code_fence_content)
1614] @markup.raw.block
1715
1816(block_quote) @markup.quote
@@ -26,6 +24,8 @@
2624(link_destination) @markup.link.url
2725(link_label) @markup.link.label
2826
27+(info_string) @label
28+
2929[
3030 (link_text)
3131 (image_description)
@@ -51,3 +51,4 @@
5151
5252(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
5353(image ["[" "]" "(" ")"] @punctuation.bracket)
54+(fenced_code_block_delimiter) @punctuation.bracket