Commit 7ab306d1f7

Ali Chraghi <alichraghi@proton.me>
2023-08-05 04:19:24
Build.ConfigHeader: render identifiers
1 parent 77dd64b
Changed files (1)
lib
std
Build
lib/std/Build/Step/ConfigHeader.zig
@@ -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;