From 907cc576ea246ca750bf9b0a9177cda23ec32169 Mon Sep 17 00:00:00 2001 From: Taupiqueur Date: Sun, 17 Oct 2021 00:19:53 +0200 Subject: [PATCH] Fix AsciiDoc blocks https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/ --- rc/filetype/asciidoc.kak | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rc/filetype/asciidoc.kak b/rc/filetype/asciidoc.kak index 4ec92b3b..453ffd4a 100644 --- a/rc/filetype/asciidoc.kak +++ b/rc/filetype/asciidoc.kak @@ -46,11 +46,12 @@ add-highlighter shared/asciidoc/ regex ^\.[^\h\W][^\n]*$ 0:title 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 -# Blocks -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 +# Delimited blocks +# https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/ +add-highlighter shared/asciidoc/ regex ^(-{4,})\n[^\n\h].*?\n(-{4,})$ 0:block +add-highlighter shared/asciidoc/ regex ^(={4,})\n[^\n\h].*?\n(={4,})$ 0:block +add-highlighter shared/asciidoc/ regex ^(~{4,})\n[^\n\h].*?\n(~{4,})$ 0:block +add-highlighter shared/asciidoc/ regex ^(\*{4,})\n[^\n\h].*?\n(\*{4,})$ 0:block # Monospaced text add-highlighter shared/asciidoc/ regex \B(?:\+[^\n]+?\+|`[^\n]+?`)\B 0:mono