fix config_gen
This commit is contained in:
parent
805e8389cb
commit
3080a5d315
@ -527,6 +527,9 @@ fn collectBuiltinData(allocator: std.mem.Allocator, version: []const u8, langref
|
|||||||
});
|
});
|
||||||
} else if (state != .searching and std.mem.eql(u8, tag_name, "code_begin")) {
|
} else if (state != .searching and std.mem.eql(u8, tag_name, "code_begin")) {
|
||||||
std.debug.assert(tokenizer.next().id == .Separator);
|
std.debug.assert(tokenizer.next().id == .Separator);
|
||||||
|
std.debug.assert(tokenizer.next().id == .TagContent);
|
||||||
|
switch (tokenizer.next().id) {
|
||||||
|
.Separator => {
|
||||||
std.debug.assert(tokenizer.next().id == .TagContent);
|
std.debug.assert(tokenizer.next().id == .TagContent);
|
||||||
switch (tokenizer.next().id) {
|
switch (tokenizer.next().id) {
|
||||||
.Separator => {
|
.Separator => {
|
||||||
@ -536,6 +539,10 @@ fn collectBuiltinData(allocator: std.mem.Allocator, version: []const u8, langref
|
|||||||
.BracketClose => {},
|
.BracketClose => {},
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
.BracketClose => {},
|
||||||
|
else => unreachable,
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const content_token = tokenizer.next();
|
const content_token = tokenizer.next();
|
||||||
@ -865,7 +872,7 @@ const Response = union(enum) {
|
|||||||
|
|
||||||
fn httpGET(allocator: std.mem.Allocator, uri: std.Uri) !Response {
|
fn httpGET(allocator: std.mem.Allocator, uri: std.Uri) !Response {
|
||||||
var client = std.http.Client{ .allocator = allocator };
|
var client = std.http.Client{ .allocator = allocator };
|
||||||
defer client.deinit(allocator);
|
defer client.deinit();
|
||||||
try client.ca_bundle.rescan(allocator);
|
try client.ca_bundle.rescan(allocator);
|
||||||
|
|
||||||
var request = try client.request(uri, .{}, .{});
|
var request = try client.request(uri, .{}, .{});
|
||||||
|
Loading…
Reference in New Issue
Block a user