From df5943be940b2c8f3ae3f36ccc0769870244da21 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 20 Sep 2015 17:39:39 +0100 Subject: [PATCH] Word boundaries do not work correctly for asciidoc highlighting --- rc/asciidoc.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/asciidoc.kak b/rc/asciidoc.kak index 175f1f16..7420687a 100644 --- a/rc/asciidoc.kak +++ b/rc/asciidoc.kak @@ -17,9 +17,9 @@ addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n~{2,}\h*\n\h*$ 0:header addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n\^{2,}\h*\n\h*$ 0:header addhl -group /asciidoc regex ^\h+([-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:list 1:bullet addhl -group /asciidoc regex ^([-=~]+)\n[^\n\h].*?\n\1$ 0:block -addhl -group /asciidoc regex \B\+[^\n]+?\+\B 0:mono -addhl -group /asciidoc regex \b_[^\n]+?_\b 0:italic -addhl -group /asciidoc regex \B\*[^\n]+?\*\B 0:bold +addhl -group /asciidoc regex (?