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.
This commit is contained in:
Isaac Freund 2021-01-18 00:44:32 +01:00
parent df7b33bc7b
commit 033b55c3ac
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -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