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.LineComment,
|
||||||
std.zig.Token.Id.DocComment,
|
std.zig.Token.Id.DocComment,
|
||||||
|
std.zig.Token.Id.ShebangLine,
|
||||||
=> {
|
=> {
|
||||||
try out.write("<span class=\"tok-comment\">");
|
try out.write("<span class=\"tok-comment\">");
|
||||||
try writeEscaped(out, src[token.start..token.end]);
|
try writeEscaped(out, src[token.start..token.end]);
|
||||||
|
|
|
@ -2208,6 +2208,7 @@ test "iterate" {
|
||||||
.doc_comments = null,
|
.doc_comments = null,
|
||||||
.decls = Node.Root.DeclList.init(std.debug.global_allocator),
|
.decls = Node.Root.DeclList.init(std.debug.global_allocator),
|
||||||
.eof_token = 0,
|
.eof_token = 0,
|
||||||
|
.shebang = null,
|
||||||
};
|
};
|
||||||
var base = &root.base;
|
var base = &root.base;
|
||||||
assert(base.iterate(0) == null);
|
assert(base.iterate(0) == null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user