mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
fix regression from previous commit
This commit is contained in:
parent
21328e0036
commit
6dd93ee5d9
@ -818,6 +818,7 @@ fn tokenizeAndPrint(allocator: *mem.Allocator, docgen_tokenizer: *Tokenizer, out
|
||||
|
||||
std.zig.Token.Id.LineComment,
|
||||
std.zig.Token.Id.DocComment,
|
||||
std.zig.Token.Id.ShebangLine,
|
||||
=> {
|
||||
try out.write("<span class=\"tok-comment\">");
|
||||
try writeEscaped(out, src[token.start..token.end]);
|
||||
|
@ -2208,6 +2208,7 @@ test "iterate" {
|
||||
.doc_comments = null,
|
||||
.decls = Node.Root.DeclList.init(std.debug.global_allocator),
|
||||
.eof_token = 0,
|
||||
.shebang = null,
|
||||
};
|
||||
var base = &root.base;
|
||||
assert(base.iterate(0) == null);
|
||||
|
Loading…
Reference in New Issue
Block a user