markdown: limit raw block highlight to code fence content
This commit is contained in:
parent
c8dba2f4c6
commit
c5600c9c01
2 changed files with 5 additions and 4 deletions
|
@ -855,7 +855,7 @@ indent = { tab-width = 2, unit = " " }
|
|||
|
||||
[[grammar]]
|
||||
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]]
|
||||
name = "dart"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue