From 28ea364e5e60464f68501fdfa69ba41b9cf9c47e Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 11 Apr 2018 13:56:39 +0200 Subject: [PATCH] std.zig.parser now handle `try`'s precedence correctly This allows parsing of `std/zig/parser.zig`. Related: #909 --- std/zig/parser.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/std/zig/parser.zig b/std/zig/parser.zig index 16afe57be..104e7e4cf 100644 --- a/std/zig/parser.zig +++ b/std/zig/parser.zig @@ -2957,6 +2957,7 @@ pub const Parser = struct { Token.Id.QuestionMark => ast.NodePrefixOp.PrefixOp { .MaybeType = void{} }, Token.Id.QuestionMarkQuestionMark => ast.NodePrefixOp.PrefixOp { .UnwrapMaybe = void{} }, Token.Id.Keyword_await => ast.NodePrefixOp.PrefixOp { .Await = void{} }, + Token.Id.Keyword_try => ast.NodePrefixOp.PrefixOp { .Try = void{ } }, else => null, }; }