From 41d2176179b4aa74d458785063a491d1612c58d4 Mon Sep 17 00:00:00 2001 From: lePerdu Date: Fri, 9 Nov 2018 11:47:14 -0500 Subject: [PATCH] Add back list marker highlighting --- rc/base/markdown.kak | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rc/base/markdown.kak b/rc/base/markdown.kak index e8f30028..2e84ab70 100644 --- a/rc/base/markdown.kak +++ b/rc/base/markdown.kak @@ -35,7 +35,9 @@ add-highlighter shared/markdown/codeblock region -match-capture \ ^(\h*)```\h*$ \ fill meta -add-highlighter shared/markdown/listblock region -match-capture ^\h*[-*]\s ^\h*(?=[-*\n]) ref markdown/inline +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/inline/code region -match-capture (`+) (`+) fill mono @@ -46,10 +48,6 @@ add-highlighter shared/markdown/inline/text/ regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h # Atx-style header add-highlighter shared/markdown/inline/text/ regex ^(#+)(\h+)([^\n]+) 1:header -# This is kind of redundant since there is already a listblock highlighter but -# that can't just highlight the list marker -add-highlighter shared/markdown/inline/text/ regex ^\h*[-*]\s 0:bullet - add-highlighter shared/markdown/inline/text/ regex \B\+[^\n]+?\+\B 0:mono add-highlighter shared/markdown/inline/text/ regex (?