From ae9088f1920161feb1e9117a56c3b361aeab0bcb Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 23 Oct 2020 16:24:12 +0300 Subject: [PATCH] rc markdown: Fix bullet highlighting This commit prevents the lines following the one that holds the bullet from being highlighted with the `bullet` face when they're indented: - The bullet is highlighted properly, so is this sentence but this line the ones that would follow are not Fixes #3582 --- rc/filetype/markdown.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/filetype/markdown.kak b/rc/filetype/markdown.kak index 68aabd5a..be7678c9 100644 --- a/rc/filetype/markdown.kak +++ b/rc/filetype/markdown.kak @@ -59,9 +59,9 @@ add-highlighter shared/markdown/codeblock region -match-capture \ ^(\h*)```\h*$ \ fill meta -add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^\h*((?=[-*])|$) regions -add-highlighter shared/markdown/listblock/marker region \A [-*]\s fill bullet -add-highlighter shared/markdown/listblock/content default-region ref markdown/inline +add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^\h*((?=[-*])|$) group +add-highlighter shared/markdown/listblock/ ref markdown/inline +add-highlighter shared/markdown/listblock/marker regex ^\h*([-*])\s 1:bullet add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono