Build.ConfigHeader: render identifiers

This commit is contained in:
Ali Chraghi 2023-08-05 05:49:24 +03:30 committed by Andrew Kelley
parent 77dd64b5f4
commit 7ab306d1f7

View File

@ -546,9 +546,9 @@ fn replace_variables(
allocator.free(content_buf);
content_buf = buf;
},
.string => |string| {
const buf = try std.fmt.allocPrint(allocator, "{s}{s}{s}", .{ beginline, string, endline });
last_index = start_index + string.len + 1;
.string, .ident => |x| {
const buf = try std.fmt.allocPrint(allocator, "{s}{s}{s}", .{ beginline, x, endline });
last_index = start_index + x.len + 1;
allocator.free(content_buf);
content_buf = buf;