zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e7207bc267d90b5be009fcd937b86cde9bf9ae77 (tree)
parent 09cded209d082c0cbade2fa7c0da9b9f87c840e8
Author: Vexu <git@vexu.eu>
Date:   Sun, 14 Jun 2020 20:13:02 +0300

add workaround for #5599

Diffstat:
Mlib/std/zig/parse.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/zig/parse.zig b/lib/std/zig/parse.zig @@ -1911,7 +1911,7 @@ const Parser = struct { /// BreakLabel <- COLON IDENTIFIER fn parseBreakLabel(p: *Parser) !?*Node { _ = p.eatToken(.Colon) orelse return null; - return p.expectNode(parseIdentifier, .{ + return try p.expectNode(parseIdentifier, .{ .ExpectedIdentifier = .{ .token = p.tok_i }, }); }