mirror of https://github.com/helix-editor/helix
markdown: limit raw block highlight to code fence content
parent
c8dba2f4c6
commit
c5600c9c01
|
@ -855,7 +855,7 @@ indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "markdown"
|
name = "markdown"
|
||||||
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "ad8c32917a16dfbb387d1da567bf0c3fb6fffde2" }
|
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "ab15701d8f3f68aeb74e30573b7d669a6ef2a7ed" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "dart"
|
name = "dart"
|
||||||
|
|
|
@ -8,11 +8,9 @@
|
||||||
(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5)
|
(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)
|
(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6)
|
||||||
|
|
||||||
(code_fence_content) @none
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(indented_code_block)
|
(indented_code_block)
|
||||||
(fenced_code_block)
|
(code_fence_content)
|
||||||
] @markup.raw.block
|
] @markup.raw.block
|
||||||
|
|
||||||
(block_quote) @markup.quote
|
(block_quote) @markup.quote
|
||||||
|
@ -26,6 +24,8 @@
|
||||||
(link_destination) @markup.link.url
|
(link_destination) @markup.link.url
|
||||||
(link_label) @markup.link.label
|
(link_label) @markup.link.label
|
||||||
|
|
||||||
|
(info_string) @label
|
||||||
|
|
||||||
[
|
[
|
||||||
(link_text)
|
(link_text)
|
||||||
(image_description)
|
(image_description)
|
||||||
|
@ -51,3 +51,4 @@
|
||||||
|
|
||||||
(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
|
(inline_link ["[" "]" "(" ")"] @punctuation.bracket)
|
||||||
(image ["[" "]" "(" ")"] @punctuation.bracket)
|
(image ["[" "]" "(" ")"] @punctuation.bracket)
|
||||||
|
(fenced_code_block_delimiter) @punctuation.bracket
|
||||||
|
|
Loading…
Reference in New Issue