summaryrefslogtreecommitdiff
path: root/rc/filetype/zig.kak
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-01-18 00:44:32 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2021-01-18 00:44:32 +0100
commit033b55c3ac9f220a6ed2837dc5a2b8bc140fd517 (patch)
tree91359b2ccd897a060741f887f0d6fd10dc6d1258 /rc/filetype/zig.kak
parentdf7b33bc7b9da897d1d0127b54ae1e629d2334ff (diff)
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.
Diffstat (limited to 'rc/filetype/zig.kak')
-rw-r--r--rc/filetype/zig.kak2
1 files changed, 1 insertions, 1 deletions
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