From 0ab4ac5515587c66d47f73f4124605e6b748c5d1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 29 Apr 2015 21:56:37 +0100 Subject: [PATCH] Improve asciidoc highlighting --- rc/asciidoc.kak | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc/asciidoc.kak b/rc/asciidoc.kak index 7dbc6863..33168192 100644 --- a/rc/asciidoc.kak +++ b/rc/asciidoc.kak @@ -3,11 +3,14 @@ hook global BufCreate .*\.asciidoc %{ set buffer filetype asciidoc } addhl -group / group asciidoc addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n={2,}\h*\n\h*$ 0:blue addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:cyan +addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n~{2,}\h*\n\h*$ 0:green +addhl -group /asciidoc regex (\A|\n\n)[^\n]+\n\^{2,}\h*\n\h*$ 0:yellow addhl -group /asciidoc regex ^\h+([-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:yellow 1:cyan addhl -group /asciidoc regex ^([-=~]+)\n[^\n\h].*?\n\1$ 0:magenta addhl -group /asciidoc regex (?