From 600983b7bb24523fc52401efa57bad8afcbcc9f1 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Wed, 22 Jul 2020 21:28:06 -0400 Subject: [PATCH] asciidoc: Fix bullet face regular expression Additionally, change the bolding regex to account for this. Fixes #3605. --- rc/filetype/asciidoc.kak | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc/filetype/asciidoc.kak b/rc/filetype/asciidoc.kak index 3aa3676c..4b33e9e0 100644 --- a/rc/filetype/asciidoc.kak +++ b/rc/filetype/asciidoc.kak @@ -33,14 +33,16 @@ add-highlighter shared/asciidoc/ regex (\A|\n\n)[^\n]+\n\^{2,}\h*$ 0:header add-highlighter shared/asciidoc/ regex (\A|\n\n)=\h+[^\n]+$ 0:title add-highlighter shared/asciidoc/ regex (\A|\n\n)={2,}\h+[^\n]+$ 0:header -add-highlighter shared/asciidoc/ regex ^\h+([-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:list 1:bullet +add-highlighter shared/asciidoc/ regex ^\h*(?[-\*])\h+[^\n]+$ 0:list bullet:bullet +add-highlighter shared/asciidoc/ regex ^\h*(?[-\*]+)\h+[^\n]+(\n\h+[^-\*\n]*)?$ 0:list bullet:bullet add-highlighter shared/asciidoc/ regex ^(-{3,})\n[^\n\h].*?\n(-{3,})$ 0:block add-highlighter shared/asciidoc/ regex ^(={3,})\n[^\n\h].*?\n(={3,})$ 0:block add-highlighter shared/asciidoc/ regex ^(~{3,})\n[^\n\h].*?\n(~{3,})$ 0:block add-highlighter shared/asciidoc/ regex ^(\*{3,})\n[^\n\h].*?\n(\*{3,})$ 0:block add-highlighter shared/asciidoc/ regex \B(?:\+[^\n]+?\+|`[^\n]+?`)\B 0:mono add-highlighter shared/asciidoc/ regex \b_[^\n]+?_\b 0:+i -add-highlighter shared/asciidoc/ regex \B\*[^\n]+?\*\B 0:+b +add-highlighter shared/asciidoc/ regex \s\*[^\n\*]+\*\B 0:+b +add-highlighter shared/asciidoc/ regex \h\*[^\n\*]+\*\B 0:+b add-highlighter shared/asciidoc/ regex ^:[-\w]+: 0:meta # Commands