From 033b55c3ac9f220a6ed2837dc5a2b8bc140fd517 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 18 Jan 2021 00:44:32 +0100 Subject: [PATCH] zig.kak: fix highlighting of empty doc comment If a line contains three slashes directly followed by a new line, the next line is also erroneously highlighted as a doc comment currently. Using a lookahead instead fixes this. --- rc/filetype/zig.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/zig.kak b/rc/filetype/zig.kak index 157083fe..beffa881 100644 --- a/rc/filetype/zig.kak +++ b/rc/filetype/zig.kak @@ -36,7 +36,7 @@ provide-module zig %ยง add-highlighter shared/zig regions add-highlighter shared/zig/code default-region group -add-highlighter shared/zig/doc_comment region '///[^/]' '$' fill documentation +add-highlighter shared/zig/doc_comment region '///(?=[^/])' '$' fill documentation add-highlighter shared/zig/comment region '//' '$' fill comment # strings and characters