fix regression from previous commit

This commit is contained in:
Andrew Kelley 2018-09-18 18:52:22 -04:00
parent 21328e0036
commit 6dd93ee5d9
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C
2 changed files with 2 additions and 0 deletions

View File

@ -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]);

View File

@ -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);