From 70097a98b39c54735eca8d5ebb3237113dfdcebf Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sun, 18 Nov 2018 08:28:50 +0100 Subject: [PATCH] Sinplify regex Co-Authored-By: JJK96 --- rc/base/markdown.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/markdown.kak b/rc/base/markdown.kak index f0cb8307..eede7ccd 100644 --- a/rc/base/markdown.kak +++ b/rc/base/markdown.kak @@ -40,7 +40,7 @@ add-highlighter shared/markdown/content/ regex (\A|\n\n)[^\n]+\n={2,}\h*\n\h*$ 0 add-highlighter shared/markdown/content/ regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header # Atx-style header -add-highlighter shared/markdown/content/ regex ^(#+)(\h+)([^\n]+) 0:header +add-highlighter shared/markdown/content/ regex ^#[^\n]* 0:header add-highlighter shared/markdown/content/ regex ^\h?((?:[\s\t]+)?[-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*\n)*$ 0:list 1:bullet add-highlighter shared/markdown/content/ regex \B\+[^\n]+?\+\B 0:mono