From da8a7e8b506f13d6c3e677ad6c95e9c5c245af53 Mon Sep 17 00:00:00 2001 From: Kurian Jojo <67583328+polyesterswing@users.noreply.github.com> Date: Sat, 14 Mar 2026 04:39:19 +0530 Subject: [PATCH] markdown: Fix block quote continuation highlighting (#51465) There is no highlight for block quotes continued on multiple lines Currently, the ">" on lines 2 and 3 are not highlighted in the same way as line 1 image After this PR, image for this input ```md > abcd > > abcd ``` tree-sitter produces this ``` (document [0, 0] - [3, 0] (section [0, 0] - [3, 0] (block_quote [0, 0] - [3, 0] (block_quote_marker [0, 0] - [0, 2]) (paragraph [0, 2] - [1, 1] (inline [0, 2] - [0, 6]) (block_continuation [1, 0] - [1, 1])) (block_continuation [2, 0] - [2, 2]) (paragraph [2, 2] - [3, 0] (inline [2, 2] - [2, 6]))))) ``` the screenshots in #43043 also show this issue Release Notes: - Fixed highlighting of block quotes continued over multiple lines in markdown files --- crates/languages/src/markdown/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/languages/src/markdown/highlights.scm b/crates/languages/src/markdown/highlights.scm index 1a471a848dfe0c9457ab23ba9dbf3fd9e8438f7d..76254c2472d98dc58a6efdccef41d9ec677a1b77 100644 --- a/crates/languages/src/markdown/highlights.scm +++ b/crates/languages/src/markdown/highlights.scm @@ -21,7 +21,10 @@ (list_marker_parenthesis) ] @punctuation.list_marker.markup -(block_quote_marker) @punctuation.markup +[ + (block_quote_marker) + (block_continuation) +] @punctuation.markup (pipe_table_header "|" @punctuation.markup)