From c6c501eb5bc997c1eebf73b1105476598b354f10 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 5 Mar 2018 11:20:56 +1100 Subject: [PATCH] asciidoc.kak: Fix highlighting of _itallic_ markup `_` is a word character, so the regex cannot be exactly the same as for `*`. --- rc/core/asciidoc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/asciidoc.kak b/rc/core/asciidoc.kak index b2cc2ed9..adb79f56 100644 --- a/rc/core/asciidoc.kak +++ b/rc/core/asciidoc.kak @@ -27,7 +27,7 @@ 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:italic +add-highlighter shared/asciidoc regex \b_[^\n]+?_\b 0:italic add-highlighter shared/asciidoc regex \B\*[^\n]+?\*\B 0:bold add-highlighter shared/asciidoc regex ^:[-\w]+: 0:meta