From 7fe315da0304b30a6ed54666ea1df12d66a7fb8f Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 11 Jan 2023 16:24:38 +0100 Subject: [PATCH] output: reset color before rendering container doc comments --- src/output.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.zig b/src/output.zig index ade7241..19730d6 100644 --- a/src/output.zig +++ b/src/output.zig @@ -27,10 +27,10 @@ pub fn renderTopLevelDocComments(ais: *Ais, tree: Ast) !void { ais.colorComments(); const comment_end_loc = tree.tokens.items(.start)[0]; _ = try renderComments(ais, tree, 0, comment_end_loc); + ais.colorReset(); if (tree.tokens.items(.tag)[0] == .container_doc_comment) { try renderContainerDocComments(ais, tree, 0); } - ais.colorReset(); } /// renderPubMember prints the given declaration using ais.