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:
parent
df7b33bc7b
commit
033b55c3ac
|
@ -36,7 +36,7 @@ provide-module zig %§
|
||||||
add-highlighter shared/zig regions
|
add-highlighter shared/zig regions
|
||||||
add-highlighter shared/zig/code default-region group
|
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
|
add-highlighter shared/zig/comment region '//' '$' fill comment
|
||||||
|
|
||||||
# strings and characters
|
# strings and characters
|
||||||
|
|
Loading…
Reference in New Issue
Block a user