From d38e1ffb1533565ecea6dd83cca88d36690fadef Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 26 Oct 2026 17:15:16 +0100 Subject: zilch: implement async --- src/zilch/Env/Function.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zilch/Env') diff --git a/src/zilch/Env/Function.zig b/src/zilch/Env/Function.zig index 692ce2b..c37b1c7 100644 --- a/src/zilch/Env/Function.zig +++ b/src/zilch/Env/Function.zig @@ -4,10 +4,12 @@ const Self = @This(); content: []const u8, id: u32, +await: bool, pub fn from(content: []const u8) Self { return .{ .content = content, .id = std.hash.XxHash32.hash(4654, content), + .await = std.mem.startsWith(u8, content, "async ") or std.mem.startsWith(u8, content, "async("), }; } -- cgit v1.2.3-70-g09d2