From d734245141b727aea9b1b19228452389ecb2d327 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Sat, 23 Jul 2022 00:34:53 +0000 Subject: [PATCH] Highlight orelse as a keyword --- src/semantic_tokens.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/semantic_tokens.zig b/src/semantic_tokens.zig index 3a91423..f756fcc 100644 --- a/src/semantic_tokens.zig +++ b/src/semantic_tokens.zig @@ -871,7 +871,7 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D => { try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, node_data[node].lhs }); const token_type: TokenType = switch (tag) { - .bool_and, .bool_or => .keyword, + .bool_and, .bool_or, .@"orelse" => .keyword, else => .operator, };