mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
autodoc: Fix rendering of enum types (#17058)
This commit is contained in:
parent
e5c72a32a7
commit
5cc1831ca4
@ -2187,11 +2187,15 @@ Happy writing!
|
||||
yield Tok.enter;
|
||||
}
|
||||
}
|
||||
for (let j = 0; j < indent; j += 1) yield Tok.tab;
|
||||
yield { src: "_", tag: Tag.identifier };
|
||||
if (fields_len > 1) {
|
||||
yield Tok.comma;
|
||||
yield Tok.enter;
|
||||
if (enumObj.nonexhaustive) {
|
||||
for (let j = 0; j < indent; j += 1) yield Tok.tab;
|
||||
|
||||
yield { src: "_", tag: Tag.identifier };
|
||||
|
||||
if (fields_len > 1) {
|
||||
yield Tok.comma;
|
||||
yield Tok.enter;
|
||||
}
|
||||
}
|
||||
if (opts.indent) {
|
||||
for (let j = 0; j < opts.indent; j += 1) yield Tok.tab;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user